Actions and Parameters |
|
The logic settings for event handling consist of two fields: an action and the parameters for that action. When an action is defined for an event type, NOMADS will execute it automatically each time the associated event occurs. If a null value is used for library name, NOMADS assumes the current library.
Action |
Description/Parameters |
Perform or Call |
Event logic is often contained in a separate program. To run program code, select a Perform or Call action, specify a program name and label entry point. |
End |
Terminates panel object. |
End All Active Wdws |
Closes all windows, including the main window and all attached concurrent windows. |
Execute |
Any sequence of valid PxPlus commands separated by semi-colons can be added directly to the control definition if the Execute action is selected to process the logic. Program code that is included on the panel cannot be performed or called, but commands may include a
PERFORM or
CALL directive. |
Help |
Many controls include a Help option for event logic. For example, you may specify a Help reference to be activated On Exit in the Panel Header to launch a help file when the panel is closed or On Change when a button is pressed. |
Ignore |
No logic is performed. (Default) |
Jumpto |
Jumpto is the equivalent of a PxPlus
PERFORM directive. You can launch another panel and specify a different library; however, in the Jumpto action, all variables are passed to the new panel and its associated program(s), so no argument list is needed. |
Link |
This is essentially a CALL to the NOMADS program *winproc. |
Merge-Jumpto |
When a panel is launched via Link or Jumpto, the parent window is disabled. Use Merge-Jumpto to launch
Concurrent Panels. |
Non-NOMADS |
In the Post Display logic event for a panel, you may select Non-NOMADS to run an existing application that was not developed in NOMADS. At run time, NOMADS draws a window and RUNs your specified program within it. |
|
Perform |
";init" |
|
Call |
"c:\mypath\prog_01;validate_custID",cust_ID$,cust_name$ |
|
Execute |
user-name$=arg_1$;MSGBOX "UserID is "+user_name$ |
|
Non-NOMADS |
"c:\mypath\prog_101;init" |
|
Help |
"C:\MY_PATH\MY.HLP;162" |
|
Link |
"my_panel","",Cust_ID$,cust_name$ |
|
Jumpto |
"my_panel","my_library.en" |