How to change Collection Using Function

Discussion in 'Tally Developer' started by Himanshu-2002, Jul 29, 2020.

    
  1. Himanshu-2002

    Himanshu-2002 Active Member


    How to Change Collection Values in Function ?

    Example-
    [Collection: Ledger Collection ]
    Type: Ledger
    Fetch: Name

    [Function: Ledger Update ]
    00: Walk Collection: Ledger Collection
    05: Set: Name : "New Ledger Name"
    10: End Walk
    20: Return
     


  2. anish

    anish Member


    :)
     


  3. Himanshu-2002

    Himanshu-2002 Active Member


    Sir Will this code work?
     


  4. Vijay Shetye

    Vijay Shetye Member


    If you want the collection to Limit to the Ledger Name Passed In the Function you will have to add a filter at collection Level

    [Collection: Ledger Collection ]
    Type: Ledger
    Fetch: Name
    Filter: MYFilter

    [Function: Ledger Update ]
    00: Walk Collection: Ledger Collection
    05: Set: Name : "New Ledger Name"
    10: End Walk
    20: Return

    [System: Formula]
    MYFilter : $Name = ##Name

    But i am unable to understand what is the output you are trying to achieve please share the output that you are trying to achieve then will be able to help you
     


Share This Page