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. knsivam89

    knsivam89 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...
     


Share This Page