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.
Try Trigger like this Action :call:Fc_Trigger [FUNCTION:Fc_Trigger] 01: Trigger Key :Enter 02: Trigger Key :Ctrl+A 03: Trigger Key own
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..
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
Well done sir ..Nice code. thanks for sharing this code is useful and helping me so much for learing TDL
Than you very much sir ! but when I process not stopped it keep open and close the vouchers ! How to auto stop it
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
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".
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
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
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
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
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 ....
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
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...