Linking a command with a function key

Each function key on a QMF panel is linked with a QMF command that executes when the function key is pressed. To ensure your customized function keys also work this way, make sure one of the two rows you enter into the table has the values shown in Table 65.

Table 65. Values to customize your function key table
Column Value Information
PANEL ID of the QMF panel you're customizing Full-screen panel identifiers shows the IDs you need to use for full-screen panels. Window panel identifiers shows the IDs you need to use for specific window panels.

If you want to define the same set of keys to appear on every panel in a class of window panels, use the class ID shown at the bottom of the tables. For example, to customize the Specify panel of a Forms window, use the panel ID FOSPEC if you want the Specify panel to have different keys than the rest of the panels in the forms class. Otherwise, use the panel ID FOXXXX, which characterizes all panels in that class.

Changes you make using a class ID apply to all panels customized by that class ID. Help and prompt windows do not have a set of unique IDs; they can be customized only by using class IDs.

ENTRY_TYPE K K indicates that this row defines the command QMF issues when the key is pressed.
NUMBER Number of the function key you're customizing If you are changing the definition for F5, enter a 5 in this column.
F__SETTING Text of the command that runs when the key is pressed Make sure this command is appropriate for the panel on which it appears. For example, the ENLARGE command is appropriate for only the QUERY panel in a QBE query. Because QMF does not check if the command is appropriate for the panel until the user presses the key, test each of your new function keys before your end users need them.

Enter the command in uppercase, because QMF does not convert terminal input to uppercase when it retrieves the commands associated with function keys. The command won't run if this value is lowercase and the CASE field of the user's profile has the value UPPER.

Ensure that each panel you customize has a key set to END or CANCEL. Without a key defined to one of these commands, users might not be able to exit the panel.

If you are using an NLF: Make sure the underlying command has the correct national language translation; additionally, it is helpful if the label text for each key is written in the language of the NLF you are using.

[ Previous Page | Next Page | Contents | Index ]