Summary [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Self-Paced Training Guide
Summary
In this lesson, you defined a set of function keys and the functions that
are called by them.
A function key set can contain up to eight function keys which execute an
item when the user presses a key. Some of the items that can be called
from a function key are:
* A function.
* A process.
* A report.
* A screen.
* A help screen.
* Another function key set.
Each function key can have the following items defined for it:
* An action.
This is the item that is executed when the user presses the key.
* Label text.
This is the text that appears on the function key label on the
application screen.
* A switch number.
You can associate a user switch with a function key. The status
of the switch is shown by the presence or absence of an asterisk
in the function key label.
This lesson also introduced an important feature of the screen processing
system. The product function and the option function are both called
from function keys. These functions change the value in the
communication area field *FIELDNO. When a function called from a function
key changes the value in *FIELDNO, HP ALLBASE/4GL executes the function,
and then immediately performs the input processing for the current screen
field when the function exits.
In this application, pressing the Option function key while the cursor
is on the product_no field executes the option function immediately. HP
ALLBASE/4GL then completes the input processing for the product_no field.
This processing executes the product_key_read function to retrieve a
product record.
MPE/iX 5.0 Documentation