Open n Close

Discussion in 'Free Source Codes' started by Neeru, May 4, 2020.

    
  1. Neeru

    Neeru Active Member


    Open and Close entry
     
    Last edited: Jul 10, 2020


  2. Neeru

    Neeru Active Member


    any update?..
     


  3. Preyash Shah

    Preyash Shah New Member


    Still need more clarification / purpose ?
     


  4. Neeru

    Neeru Active Member


    it just like we open and save entry (Alter) but in selected entry. if i select 10 entries and when i press a button it do automatic open and save for all 10 entries.
     
    panam likes this.


  5. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Try Trigger like this

    Action :call:Fc_Trigger


    [FUNCTION:Fc_Trigger]
    01: Trigger Key :Enter
    02: Trigger Key :Ctrl+A
    03: Trigger Key :Down
     
    panam likes this.


  6. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Actually What Type of Problem is There ?
     
    panam likes this.


  7. Neeru

    Neeru Active Member


    Sir,

    I am importing data in Tally sometime due to spelling mistake my custom report not showing entries.. after open and save entries it showing perfect in my report... so i want when i select entries and press button it do action same as open n save entry..
     



  8. Try This


    ;-----------------------------------------------------------Selected Entries


    Code:
    [#Form: Day Book]
      
        Add    :    Button    :    DayReAcceptButon
      
    [Button    :    DayReAcceptButon]
      
        Title    :    $$LocaleString:"ReAccept Voucher"
        Key    :    Alt + 1
        Action    :    Call    :    FunOpenVcouhs
      
    [Function    :    FunOpenVcouhs]
      
        1001:    Walk Collection    :    SelectedVchID;Daybook Vouchers of Company
        101:    Call:    FungetAlterVoucher:("ID:"+$$LocaleString:$MasterID)
        102:    End Walk
      
    [Function    :    FungetAlterVoucher]
      
        Parameter    :    GetMasID    :    String
        100    :    Alter    :    NewVoucher
      
    [Report    :    New Voucher]
      
        Use    :    Voucher
        Object    :    Voucher    :    ##GetMasID
        Form    :    Voucher
        Local:    Field    :Default    :    On    :Focus:Yes:    Trigger Key:Enter
        Local:    Field    :Default    :    On    :Focus:Yes:    Trigger Key:Ctrl + A
      
    
    [Collection        : SelectedVchID]
      
        Data Source    : Report    : Selected Lines



    ;;;;Day Book Colletion

    Code:
    [#Form: Day Book]
     
        Add    :    Button    :    DayReAcceptButon
     
    [Button    :    DayReAcceptButon]
     
        Title    :    $$LocaleString:"ReAccept Voucher"
        Key    :    Alt + 1
        Action    :    Call    :    FunOpenVcouhs
     
    [Function    :    FunOpenVcouhs]
     
        1001:    Walk Collection    :    Daybook Vouchers of Company
        101:    Call:    FungetAlterVoucher:("ID:"+$$LocaleString:$MasterID)
        102:    End Walk
     
    [Function    :    FungetAlterVoucher]
     
        Parameter    :    GetMasID    :    String
        100    :    Alter    :    NewVoucher
     
    [Report    :    New Voucher]
     
        Use    :    Voucher
        Object    :    Voucher    :    ##GetMasID
        Form    :    Voucher
        Local:    Field    :Default    :    On    :Focus:Yes:    Trigger Key:Enter
        Local:    Field    :Default    :    On    :Focus:Yes:    Trigger Key:Ctrl + A
        
     
    Last edited: May 11, 2020
    panam and Amit Kumar Jain like this.


  9. Neeru

    Neeru Active Member




    Thank you so much
     
    panam and FreeLance Tech like this.


  10. suyash

    suyash New Member


    Well done sir ..Nice code. thanks for sharing this code is useful and helping me so much for learing TDL
     
    panam likes this.


  11. anish

    anish Member


    Than you very much sir ! but when I process not stopped it keep open and close the vouchers ! How to auto stop it
     
    panam likes this.


  12. sivam

    sivam Active Member


    Write Conditions in Function to Stop..
     
    panam likes this.


  13. panam

    panam Member


    dear experts,
    i want to repeat this trigger function 5 times and stop it.
    how to do it. please help me..

    Action :call:Fc_Trigger


    [FUNCTION:Fc_Trigger]

    01: Trigger Key :enter
    02: Trigger Key :f3
    03: Trigger Key :Ctrl+A
    04: Trigger Key :down
    05: Trigger Key :down
    06: Trigger Key :enter
    07: Trigger Key :f3
    08: Trigger Key :Ctrl+A
     


  14. panam

    panam Member


    Thank u very much sir for your valuable reply and code. it helps for beginners to learn the codes...
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use Counter.........Make a variable of Number and after your process...increment it ... until it is equal to 5.

    refer developer on how to use it....... Search for "Increment".
     
    panam likes this.


  16. panam

    panam Member


    Thank u Amit sir for the valuable reply and help. I will try as per your guidance..
     


  17. panam

    panam Member


    dear sir,
    increment is working fine but it is not stopping after the given counter.
    check the code if there is any mistake.

    [#Menu :Gate way of Tally]
    Add :Button : saved
    [Button : saved]
    Title : "saved"
    Key : ctrl + z

    Action :call:Fc_Trigger


    [FUNCTION:Fc_Trigger]
    Variable : Counter : Number


    01: Trigger Key :enter
    02: Trigger Key :f3
    03: Trigger Key :enter
    04: Trigger Key :Ctrl+A
    05: Trigger Key :down
    06: Trigger Key :down

    07: SET : Counter : 1
    08: WHILE : ##Counter <= 5
    09: Trigger Key :ctrl + z
    10: INCREMENT : Counter
    11:End While
    12:Return
     


  18. panam

    panam Member


    now i found out the mistake my self
    09: Trigger Key :ctrl + z
    due to this function it loops and loops.

    so how to rectify this code.
    i want to repeat 01 to 06 WHILE : ##Counter <= 5

    01: Trigger Key :enter
    02: Trigger Key :f3
    03: Trigger Key :enter
    04: Trigger Key :Ctrl+A
    05: Trigger Key :down
    06: Trigger Key :down
     


  19. panam

    panam Member


    i did this in another way. now i got result

    Action :Call:Trigger
    [FUNCTION:trigger]
    Variable : Counter : Number

    01:Trigger :enter, f3, ctrl+A, down
    02:Trigger :down
    03: SET : Counter : 0
    04: WHILE : ##Counter <= 15
    05: Trigger :enter, f3, ctrl+A, down
    06:Trigger :down
    07: INCREMENT : Counter
    08:End While
    09: Return
     


  20. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Very good.........;)
     
    panam likes this.


  21. panam

    panam Member


    Thank u very much sir. The success was from your guidance.
    so final code .simplified it

    [#Menu :Gate way of Tally]
    Add :Button : saved
    [Button : saved]
    Title : "saved"
    Key : ctrl + z

    Action :Call:Trigger
    [FUNCTION:trigger]
    Variable : Counter : Number

    01: SET : Counter : 0
    02: WHILE : ##Counter <= 20
    03: Trigger key :enter, f3, down, down, ctrl+A, down
    04: INCREMENT : Counter
    05: End While
    06: Return
     


  22. panam

    panam Member


    today i learnt to use increment and counter functions not fully but i understood the logic ...
    Thanks for all the members in the forum for the replies and guidance ....
     


  23. panam

    panam Member


    Action :Call:Trigger
    [FUNCTION:trigger]
    Variable : Counter : Number

    01: SET : Counter : 0
    02: WHILE : ##Counter <= 20
    03: Trigger key :enter, f3, down, down, ctrl+A, down
    04: INCREMENT : Counter
    05: End While
    06: Return

    dear sir,
    how to repeat trigger function key by date wise. i tried but tally is hanging..

    Variable : SVFromDate,SVToDate
    01:Set : SVFromDate : $$MonthStart:##SVCurrentDate
    02:Set : SVToDate : $$MonthEnd:##SVCurrentDate
    03: WHILE : $$MonthStart:##SVCurrentDate<=$$MonthEnd:##SVCurrentDate
    04: Trigger key :enter,enter,enter, f3, down, down, ctrl+A, down
    ;;04: INCREMENT : Counter
    05: End While
    06: Return
     


  24. SUSHIL SHARMA

    SUSHIL SHARMA Member


    SIR IS
    KA BANIFIT KYA HAI SIR MENE INSTALL KIYA LEKIN SAMAJ NHI AAY HOTA KIYA HAI
     


  25. Rubazi

    Rubazi New Member


    If you write your code properly and do not skip the required tags then you will not face such problem, This kind of problem come when you do not provide all the tags while importing. The problem you may be facing like entries not showing in bank reconciliation etc...
     


Share This Page