Key mapping or key binding defines how an application should respond when mapped key is typed. Usually application executes some function in repose. For example in Forms 6i, when user types F9, List of value is displayed to the user. It means that key F9 is mapped to function “List of Values”.
In oracle Forms this key mapping is defined in fmrweb.res file. Oracle provided a tool named “Oracle Terminal” in Forms 6i to customize key mapping. In Forms 10g and Forms 11g this file is directly editable. In Forms 11g this file can be located at following location
$Instance_home\config\FormsComponent\forms
In Forms 10, frmweb.res can be located in \forms directory
As you know, in Forms 10g and 11g “List of values” is mapped to “Ctrl+L” key. Following section explains how to change “List of values” to F9 key. Let have a look at the following line in frmweb.res file which maps “List of values” to “Ctrl+L” key
76 : 2 : “Ctrl+L” : 29 : “List of Values”
it very important to understand the syntax.
76: is the key code of “L” character
2: means that it will be accessed with “Ctrl” key, 1 is used for “Shift” key and 0 is used to access it stand alone
Ctrl+L: it is the key used to access
List of values: it is function called when the “Ctrl+L” is type
To re-map List of values from “Ctrl+L” to F9 key, we need key code of F9 key which is 120. A complete list of key codes can be view at following link
Now edit key mapping for List of values as under
120 : 0 : “F9″ : 29 : “List of Values”
To test it, restart your forms application. Now List of values is available with F9 key. similarly if you want to use “Shift+F” for List of values, use following mapping
120 : 1 : “Shift+F9″ : 29 : “List of Values”
and use following mapping to access List of values with “Ctrl+F9″
120 : 2 : “Ctrl+F9″ : 29 : “List of Values”