Subject: How To Define Function Keys for FIRST_RECORD And LAST_RECORD Built-Ins
Doc ID: Note:172431.1 Type: HOWTO
Last Revision Date: 28-JAN-2003 Status: PUBLISHED
* goal: How to Define Function Keys for FIRST_RECORD and LAST_RECORD Built-Ins
* fact: Oracle Forms Developer
fix:
Although there are Built-Ins for navigation to first/last record (FIRST_RECORD
and LAST_RECORD), there are no Function Keys and Key triggers for these actions.
So navigation to First/last record cannot be performed by pressing some
keyboard shortcut by default.
There are however ten unused function keys (Key-F0 through Key-F9) and these
can be used to create additional function keys for custom functions. These keys
normally do not perform any Form Builder operations.
To bind FIRST_RECORD and LAST_RECORD build-ins with some keyboard shortcut, two
things must be done:
1. As Key-Fn function keys normally do not perform any Form Builder operations
they must be bound with particular custom functions
- create Key-F0 trigger with following code:
FIRST_RECORD;
- create Key-F1 trigger with following code:
LAST_RECORD;
2. Use Oracle Terminal to map Function Keys to the appropriate keyboard
shortcuts.
- Start Oracle Terminal and open FMRUSW.RES file - located in
ORACLE_HOME/FORMSnn (backup resource file before opening).
- choose Functions > Edit Keys (ctrl+M) from menu
- in Key Binding Editor window mark runform -> normal node and press "
Edit Key Bindings" button
- in Key Binding Definition window press "Insert Row" button and
enter "User Defined Key 0" for Action and "Control+f" for
Binding.
- likewise add row "User Defined Key 0", "Control+g"
- press OK button in Key Binding Definition window
- press OK button in Key Binding Editor window
- Save resource file (ctrl+s)
- compile modifications to make them available to application programs using
Functions > Generate (Ctrl+g) menu option.
- exit Oracle Terminal
Now navigation to First record can be performed by pressing Ctrl+F and
navigation to Last record by pressing Ctrl+G
Partager