Modes, Function Keys and Processing Logic
The following table indicates which function keys are enabled when a particular processing mode is in use and what happens when the function key is used.
Note that to be "enabled" a function key must match the entry in the following table and be specified with the *YES option on the associated command. Refer to the relevant EXIT_KEY, MENU_KEY, ADD_KEY, CHANGE_KEY, DELETE_KEY and PROMPT_KEY parameters for more information.
Additionally, the function key must not have been "disabled" by the specification of a controlling "condition" (previously defined by a DEF_COND command) that is not true at the time the screen panel is processed.
Finally, if a controlling condition has been specified to "enable" or "disable" the function key, it cannot override the LANSA mode sensitive disabling of the key. For instance the CHANGE key will not be enabled in *ADD mode, even if the controlling condition is true.
Mode |
Function Key |
Enabled |
What Happens When Used |
*DISPLAY |
EXIT/SYSTEM |
YES |
Function ends or control passed to nominated command. Mode remains unchanged. |
MENU/CANCEL |
YES |
Process menu re-displayed or control passed to nominated command. Mode remains unchanged. |
|
MESSAGES |
YES |
Messages displayed, then current screen re-displayed. Mode remains unchanged. |
|
PROMPT |
YES |
Prompt request processed, then current screen re-displayed. Mode remains unchanged. |
|
ADD |
YES |
Mode changed to *ADD. Control is passed to nominated label. |
|
CHANGE |
YES |
Mode is changed to *CHANGE. Current screen is re-displayed with input capable fields to allow changes to be made. |
|
DELETE |
YES |
Mode is changed to *DELETE. Current screen is re-displayed with a message requesting that the delete request be confirmed. |
|
*CHANGE |
EXIT/SYSTEM |
YES |
Function ends or control passed to nominated command. Mode remains unchanged. |
MENU/CANCEL |
YES |
Process menu re-displayed or control passed to nominated command. Mode remains unchanged. |
|
MESSAGES |
YES |
Messages displayed, then current screen re-displayed. Mode remains unchanged. |
|
PROMPT |
YES |
Prompt request processed, then current screen re-displayed. Mode remains unchanged. |
|
ADD |
NO |
Not enabled when screen is in *CHANGE mode. |
|
CHANGE |
NO |
Enabled only when screen is in *CHANGE mode. |
|
DELETE |
NO |
Not enabled when screen is in *CHANGE mode. |
|
*ADD |
EXIT/SYSTEM |
YES |
Function ends or control is passed to nominated command. Mode remains unchanged. |
MENU/CANCEL |
YES |
Process menu re-displayed or control passed to nominated command. Mode remains unchanged. |
|
MESSAGES |
YES |
Messages displayed, then current screen re-displayed. Mode remains unchanged. |
|
PROMPT |
YES |
Prompt request processed, then current screen re-displayed. Mode remains unchanged. |
|
ADD |
NO |
Enabled only when screen is in *ADD mode. |
|
CHANGE DELETE |
NO NO |
These keys are not enabled when screen is in *ADD mode. |
|
*DELETE |
EXIT |
YES |
Function ends or control passed to nominated command. Mode remains unchanged. |
MENU |
YES |
Process menu re-displayed or control passed to nominated command. Mode remains unchanged. |
|
MESSAGES |
YES |
Messages displayed, then current screen re-displayed. Mode remains unchanged. |
|
PROMPT |
YES |
Prompt request processed, then current screen re-displayed. Mode remains unchanged. |
|
ADD CHANGE
|
NO NO
|
These keys are not enabled when screen is in *DELETE mode. |
|
DELETE |
NO |
|