I need to count how many times this sales bill is being printed.. from Create Alter and display mode too.
Rajesh, You can try using TDL new Actions- > After Print and Before Print... Create a new field in sales voucher Using After Print action , you can update a field . For usage of After Print action, refer TDL Developer sample codes
I tried but i get into. Sorry till now i have not just print action and function. [System : UDF] uPrintTimes : Number : 801 [#Part: EI BaseInfo] [#Line: EI Consignee] Add : Field : After : INVMailName : EI NoofTimes [Field : EI NoofTimes] Use : Number Field Storage : uPrintTimes Align : Right Set always : Yes [#Report: Printed Invoice] On : After Print : Yes : Call : UpdateTimes [Function: UpdateTimes] 40 : SET VALUE : uPrintTimes : $uPrintTimes + 1 41 : SAVE TARGET
I also have same problem, getting error "Invalid Target Object (No Target / Not in EditMode)" "Action execution failed" Kindly help us and give us an idea to do it.
Your function is correct. But where is Object Name, Object ID.? Add these two and try. It wll work..!