Aggregate List with a ledger

Discussion in 'Tally Developer' started by hprahul, May 22, 2020.

    
  1. hprahul

    hprahul Member


    Hello All,

    I wish to attach some data to the Ledger object in format below. I have successfully added the data but unable to retrive it in the collection?

    Please help me correct the code for collection.
    Code:
    [System: UDF]
        DetailsList    : Aggregate    : 281
        Detail1        : String     : 282
        Detail2        : String     : 283
    
    [Collection    : DetailColl]
        Title        : $$LocaleString:"List of Details"
        Type        : DetailsList        : Ledger
        Child of        : ##LedgerName
        Format        : $Detail, 30
        Align        : Right
        FullHeight    : Yes
        Fetch        : *.*
    
    [Field: DetailList]
        Table        : DetailColl
     


  2. sivam

    sivam Active Member


    Your UDF Name is Detail1 & Detail2. But u use in format is Details..?
     


  3. hprahul

    hprahul Member


    Hello Nallasivam.K,

    :) I found same after posting it, but in my code it is correct.

    Still revising my code for reference.

    Code:
    [System: UDF]
        DetailsList    : Aggregate    : 281
        Detail1        : String     : 282
        Detail2        : String     : 283
    
    [Collection    : DetailColl]
        Title        : $$LocaleString:"List of Details"
        Type        : DetailsList        : Ledger
        Child of        : ##LedgerName
        Format        : $Detail1, 30
        Align        : Right
        FullHeight    : Yes
        Fetch        : *.*
    
    [Field: DetailList]
        Table        : DetailColl
    I have stored the data in Ledger object and it is saving and working properly, but when i want to retrieve this data in voucher, i am unable to do same.

    Any other thing you feel is incorrect?
    My collection is not collecting any data...
     



  4. Your Collection should be as follows.

    [Collection : DetailColl]
    Title : $$LocaleString:"List of Details"
    Type : DetailsList : Ledger
    Child of : ##pVarLedgerName
    Compute Var : pVarLedgerName: String : $LedgerName ;;;pass Ledgername i.e. #EIConsignee etc.
    Format : $Detail1, 30
    Align : Right
    FullHeight : Yes
    Fetch : *.*
     
    gangstar likes this.


  5. hprahul

    hprahul Member


    Sure I tried this...
    Thanks, but its not fetching my data.
     


  6. hprahul

    hprahul Member


    Sir,

    Thanks for droping a hit. "#".

    I was using ## for my local variable. and hence #LedgerName worked.

    Thanks Again, it solved the issue.
     
    gangstar likes this.


Share This Page