how to control a repeated method name in a collection

Discussion in 'Tally Developer' started by mutharasan, Mar 21, 2015.

    
  1. mutharasan

    mutharasan Member


    Dear Experts,


    i have created one collection, this collection is working fine, but the collection has repeated method name. The result of the collection is 100% present correct. But i just want to control the repeated method name in that collection. Is it possible in TDL. please help me.

    Thanking you,
     


  2. anish

    anish Member


    Share your Code ! so that members can understand the problem clearly and then can able to help you !
     


  3. mutharasan

    mutharasan Member


    Dear Anish,

    Here is my code

    The code is about to describe the Loop collection, i need to filter the same value of the method.

    [#Part: DBLLINE Narration]
    Add:eek:ption:myoption:mad:@ispayment

    [!part : myoption]

    Add : Line : After : VCH Narration : myLine

    [Line : myline]
    field : Mediumprompt,myfield
    Local:Field:Mediumprompt:info:"Enter The Name "

    [field : myfield]
    use : Name Field
    storage :pymtstorage


    [system : Udf]
    pymtstorage:string:1822


    [collection : mypymtcoll]
    Type : Vouchers : VoucherType
    ChildOf : $$VchTypePayment
    fetch :pymtstorage,Amount
    compute:myrectamount:$$Loopcollobj:$amount

    [collection : myrecptcoll]
    Type : Vouchers : VoucherType
    Child of : $$VchTypeReceipt
    fetch:Amount

    [collection : mybothcoll]
    Collections:mypymtcoll:myrecptcoll



    [#menu : Gatewayoftally]
    item : Both collection : display : Bothcollectionreport

    [Report : Bothcollectionreport]
    Form :bothcollectionform

    [Form :bothcollectionform]
    width : 100% page
    height : 100% page
    Part : bothcollbody

    [Part : bothcollbody]
    Line :bothcollbodylne
    Repeat:bothcollbodylne:mybothcoll
    scroll : vertical

    [Line : bothcollbodylne]
    Field :Myfld2, Myfld3


    [Field : myfld2]
    use : Amount Field
    set As :$myrectamount

    [Field : myfld3]
    set As :$pymtstorage
     


Share This Page