object method access

Discussion in 'Tally Developer' started by sureshkumarks1, Jul 27, 2018.

    
  1. sureshkumarks1

    sureshkumarks1 New Member


    Dear admin,
    I am new to tdl development. So please Tell me how to access the value of sub collection of an object?
    give me a sample code.

    Please check the image
     

    Attached Files:



  2. sivam

    sivam Active Member


    Code:
    [Collection: Test]
    Type       : AccountAuditEntries :StockItem
    Child Of : "Item Name"
    Fetch     : AnnexureStatus, AuditAmount
     
    Amit Kamdar likes this.


  3. sureshkumarks1

    sureshkumarks1 New Member


    Thanks for the replay,

    I tried but didn't get the value in hsn code, please check the below code and tell how to the hsn code from 'gstdetails'

    [#menu : gateway of tally]
    Add : Key Item : Before:mad:@LocQuit : "Suresh Menu" : M : Display : Mypurc
    [Report: Mypurc]

    Form : Mypurc
    Title : "Pruchase Ledger List"

    [Form: Mypurc]

    Use : DSP Template
    Parts : My Ledger Part
    Height : 100% screen
    Width : 100% screen
    Background : Grey
    [Part : My Ledger Part]
    Lines : My Ledger Title, My Ledger Line
    Repeat : My Ledger Line : My Ledger Collection
    Common Border : Yes
    Scroll : Vertical

    [Line : My Ledger Title]
    Use : My Ledger Line
    Local: Field: default : Type : String
    Local: Field: default : Align : Center
    Local : Field : My Led Name : Set as : "Ledger Name"
    Local : Field : My Last Price : Set as : "Last Puchase Price"
    Local : Field : My Basic Value : Set as : "HSN Code"

    Border : Thin Top Bottom
    [Line : My Ledger Line]
    Fields : My Led Name, My Last Price, My Basic Value
    Repeat : My Led Name

    [Field: My Led Name ]
    Use : Name Field
    Set as : $Name
    Border : Thin Right
    Align : Left

    [Field: My Last Price ]
    Set as : $LastPurcPrice
    Border : Thin Right

    [Field: My Basic Value]
    Set as : $Hsncode
    Border : Thin Right

    [Collection: My Ledger Collection]
    Type : Stock Item
    Fetch : Name, Last Purc Price
     


  4. sivam

    sivam Active Member



    HSN in Second level collection. So we can use Walk option in Collections and get the values.
     


Share This Page