Hello, I am looking for a way to accept input from the user when they press a hotkey like "Alt R". A dialog appears and ask for input. After entering the input, the value is stored in a UDF and then displayed in the report. So far I have successfully created the dialog box. But I am unable to enter any value. Here's the code: Code: [#Form : Column Day Book] Add: Button : Gold Rate2 [Button : Gold Rate2] Title: "Enter Today's Rate" Key: Alt + R Action: Display: Rpt Confirmation [Report: Rpt Confirmation] Form: frm Confirmation Title: "Enter Todays Rate" [Field : RField] Use : Date Storage: TodaysRate [System : UDF] TodaysRate : String : 700 [Form: frm Confirmation] Part: Prt Title, Prt YesNo Full Width : No No Confirm : No Space Left : 5 Space Right : 5 Space Top : 3 Space Bottom: 3 [Part: Prt Title] Horizontal Align: Centre Lines : Form SubTitle Local : Field : Form SubTitle : Info : "Enter Todays Rate" [Part: Prt YesNo] Horizontal Align: Centre Lines : ln Confirmation [Line: ln Confirmation] Add: Field: RField I am still learning TDL, so any help would be appreciated.
Instead of Displaying Report User Alter Example [Button:Example] Title:"Title" Key:F6 Action: Alter: Report [Report: My Report] .... Hope This Helps
You suggestion worked, thanks for your reply. I want the input to be stored in the UDF and when pressed the hotkey again, the last entered input is shown. Can you help me with that? Thanks
You can Use a Variable To store Value Example: [Field:Example] Modifies: Example ;;This is the variable which will store value Now, Define this variable and Store it as system variable So, That you can use it in any reports of tally [Variable: Example] Type: String Default:"" Persistent:Yes [System: Variable] Example:"" Remember to use Persistent in Variable Else Tally will forget this when restart Now, To use this variable... Example: [Field:VoucherField] Set as :##Example