I Want To Change Caption As per User Requirement But Code Not Working Plz Help [#Menu:Gateway of Tally] Add:Item:Before@LocQuit:Change Caption:Alter:Caption [Report:Caption] Form:Caption Object:Company [Form:Caption] Part:Caption [Part:Caption] Line:Caption [Line:Caption] Field:Caption [Field:Caption] Width: 40 Max:40 Storage:Caption [#Line: LEDDesc] Field : Short Prompt, LEDDesc Invisible : NOT ##LEDDescription Local : Field: Short Prompt : Set as : @@Caption [System:UDF] Caption:String:25000 [System:Formulas] Caption : #Caption
Change the formula : [System : Formulas] Caption : $Caption:Company:##svCurrentCompany Why do you have a UDF when you are not even using it?
But Shortcut Creation Not Working : [#Menu:Gateway of Tally] Add:Item:Before@LocQuit:Create Shortcut:Alter:Shortcut Button:BSShortcut [Report:Shortcut] Form:Shortcut Object:Company:##SVCurrentCompany [Form:Shortcut] Part:Shortcut [Part:Shortcut] Line:Shortcut [Line:Shortcut] Field:Medium Prompt,Shortcut Local:Field:Medium Prompt:Info:"Shortcut Key Name : " [Field:Shortcut] Width:50 Max:50 Storage:Shortcut [System:UDF] Shortcut:String:20005 [Button:BSShortcut] Actionisplay@FnShortcut Key:Ctrl+B [System:Formulas] FnShortcut:$Shortcut:##SVCurrentCompany
I am not able to understand the purpose of this code... "$" is used to get the value from a method or UDF, the way you have used it is incorrect. If you only want the display the report where you are storing the shortcut, you should do this: [Button : BSShortcut] Action : Display : Shortcut Your formula is wrong, although it is not of any use right now. [System:Formula] FnShortcut : $Shortcut:Company:##svCurrentCompany You should try to understand the code, not just put things in without purpose.
Ria Ji, Thanks For Replay Actually I Want To Create Shortcut Key. User Define Shortcut Key As Per His Requirement & Use Any Time, Any Report I Want To Store Report Name Like Balance Sheet, Ledger & Use As per Requirement But Code Not Working Any Suggestion
if you want a shortcut key for any forms in the tally: use this: Code: ;;;; [#menu:GatewayofTally] add:button:Shortcut [#Form:Default] Add:Button:Shortcut [Button:Shortcut] Title:Shortcutname Key:ctrl+t Action:Display:BalanceSheet ;;(report name) you have replace the report with your udf or variable happy coding
no we cannot directly manipulate the button key and action at run time it is only possible at compile time(at the time of development)