Previous data of UDF to enter using Ctrl+R

Discussion in 'Tally Developer' started by HVPatel, Jun 29, 2012.

    
Thread Status:
Not open for further replies.
  1. HVPatel

    HVPatel Active Member


    Hello Experts,
    I have UDF in Sales Voucher,
    i need to get last entered data into next current voucher.
    just like into narration field, we press CTRL+R to get previous narration

    what code for it.?
    Thanks to guid.

    -Hasmukh Patel
     


  2. admin

    admin Administrator Staff Member


    By default you will not get sir.

    For this you need to write a collection to fetch the last voucher and autofill from that..
     


  3. HVPatel

    HVPatel Active Member


    Thanks to Admin
    I have done this, it is working with new entries, after updating my TDL it start with 1, not fetch old entry data
    ok, only once i have to type mannual, next getting automatically.

    [Field : BillBookno]
    Storage: BillBookNo
    Set As : $CurrentBillBookNo

    [Collection : HPCollection]
    Type : Voucher
    [System : Formula]
    LastBillBookNo : $$CollectionField:$BillBookNo:mad:@LastItem:HPCollection
    CurrentBillBookNo : $$Number:mad:@LastBillBookNo + 1
    Thanks
    -HasmukhPatel
     


  4. admin

    admin Administrator Staff Member


    Great!!!
     


  5. HVPatel

    HVPatel Active Member


    Sir,
    What code for Previous voucher, Using above, @LastItem, i am getting last number from last date voucher entry, but
    I want previous voucher UDF Value entered + 1 into next voucher
     
    dipika likes this.



  6. put childof in collection
     


  7. HVPatel

    HVPatel Active Member


    Thanks for reply,
    i had put, Sort : @@Increaing : $MasterId
     
    JObimon Arackal JOhn likes this.


Thread Status:
Not open for further replies.

Share This Page