This statement builds a function key area. You can build the function key area by using a predefined one or from scratch. Your procedure should call the BUILD FKA function before displaying a panel.
This statement has the following format:
&CONTROL SHRVARS=($FK) -EXEC $CACALL OPT=ACTION ACTION=BUILD CLASS=FKA [NAME=‘ FKA=function key area’]
An optional parameter identifying the predefined function key area on which to base the new function key area.
This statement contains the following input variables:
The function key actions for any or all of the keys F1 to F24. Specify NOACT to inactivate and remove a function key from the function key area.
The labels that are displayed in the function key area (the bottom two lines of the displayed screen). Each label can be up to eight characters in length. If not specified, the label for a key defaults to the first word of the key’s action.
These variables are used internally by the function. Do not alter the values of these variables.
These variables are used internally by the function. Do not alter the values of these variables.
This variable is used internally by the function. Do not alter the value of this variable.
This statement contains the following return variables:
The function key actions for keys F1 to F24.
The function key labels for keys F1 to F24.
These variables are used internally by the function. Do not alter the values of these variables.
These variables are used internally by the function. Do not alter the values of these variables.
This variable is used internally by the function. Do not alter the value of this variable.
Function key area line 1.
Function key area line 2.
Note: Depending on the user’s current function key area display option, &$FKA1 and &$FKA2 can contain F1 through F12, F13 through F24, or nothing.
System message. Contains the error message (for return code 8).
If a return code of 8 is set, then additional information is available as one of the following feedback codes, set in &$CAFDBK:
Processing error
Nesting level exceeded
The following statements build a function key area by using the predefined function key area $CAADD, explicitly setting F5 to HISTORY and F6 to TEXT, and disabling F7 and F11:
&$FK5 = HISTORY &$FK6 = TEXT &$FK7 = NOACT &$FK11 = NOACT &CONTROL SHRVARS=($FK) -EXEC $CACALL OPT=ACTION + ACTION=BUILD + CLASS=FKA + NAME=‘FKA=$CAADD’
The function keys described in this topic apply to the following predefined function key areas:
You can use the following function keys in these areas:
Displays Help.
Creates a new session.
Files your work.
Exits or cancels without saving.
Saves your work (only on $CAADD and $CAUPD).
Displays history (only on $IMBRO and $IMUPD).
Displays text (only on $IMADD, $IMBRO, and $IMUPD).
Displays previous page in multi-page panels.
Displays next page in multi-page panels.
Toggles between multiple sessions.
Cancels without saving (only on $IMADD and $IMUPD).
Cancels without saving.
| Copyright © 2008 CA. All rights reserved. |
|