To make a data element available to use as input or output at any point in your application, assign it to a global variable using the Assignment action. To access this action in the Event editor, choose the Basics button from the Actions list.
One possible way to use this action would be to assign users' account numbers to a global variable in a banking application. If your application accesses multiple databases for multiple hosts, you could use the assigned global variable as input, instead of forcing the users to retype their account number.
In this example, on the form containing the text field where the users type their account number, you could add an Assignment action to an On Form Submit event. You could then create a new global variable called AccountNumber, and map that to the text field on the form.
|Assign Global Variables||Displays a dialog box from which you can create new global variables, or assign new values to existing global variables.|
|Adding Actions to Events|
|Assigning Global Variables in Events|
|Assigning Global Variables from Screen Bindings|