Understanding Key Mapping after an ORMIT™-OpenJava migration
ORMIT™-OpenJava keeps the same key mappings as Oracle Forms by default, ensuring a seamless transition with no change management required. Fully customizable in keyMappings.ts, it offers improved readability and control.
How is key mapping managed in Oracle Forms?
In Oracle Forms, key mapping is controlled via the FRMWEB.res file. This file defines the key bindings for various functionalities, such as navigation, commit, and form interaction. Each functionality is mapped to a corresponding key or key combination.
For example:
- Next Field -> TAB
- Previous Field -> SHIFT + TAB
- Commit -> F10
- Previous Block -> SHIFT + PAGE UP
How is key mapping handled in ORMIT™-OpenJava?
After migrating to ORMIT™-OpenJava, key mappings are defined in one file, client/src/app/configs/keyMappings.ts. This file serves a similar purpose as FRMWEB.res but is more structured and allows for better readability and customization.
By default, ORMIT™-OpenJava maintains the same key mappings as Oracle Forms to ensure a seamless transition for end users. This eliminates the need for change management and allows users to continue using familiar key combinations. However, the key mappings are fully customizable and can be adapted to meet new requirements if needed.
How does Oracle Forms key mapping compare to ORMIT™-OpenJava’s?
While Oracle Forms relies on functionality equivalents, ORMIT™-OpenJava (OOJ) introduces a more direct mapping between triggers and keys. This provides better control and understanding of how specific actions are executed and how they relate to their corresponding trigger in the code.
Example of Key Mapping in OOJ
| Functionality | Key Mapping: ORMIT™-OpenJava (delivered keyMappings.ts) |
Oracle Forms trigger: ORMIT™-OpenJava function |
|---|---|---|
| Previous Block | SHIFT + PAGE UP (also CTRL + PAGE UP) | KEY-PRVBLK: KeyPrvblk |
| Next Field | TAB (also ENTER) | KEY-NEXT-ITEM: KeyNextItem |
| Previous Record | Up Arrow | KEY-UP: KeyUp |
| Commit | F10 (also CTRL + S) | KEY-COMMIT: KeyCommit |
What are the advantages of ORMIT™-OpenJava's key mapping approach?
Improved Readability: The mappings explicitly define which triggers correspond to each key action.
Better Customization: Developers can easily modify or extend key mappings in keyMappings.ts.
More Precise Control: Each functionality is mapped to a specific trigger, ensuring consistency across the application.
Seamless User Experience: Default mappings match Oracle Forms, preventing disruption and reducing training efforts.
Can I customize key mappings in ORMIT™-OpenJava?
Yes! The keyMappings.ts file is fully customizable, allowing developers to assign different keys to triggers as needed. This makes it easy to adapt the system to specific user preferences or enterprise standards.
How do I modify the key mappings in ORMIT™-OpenJava?
To change a key mapping, simply update the keyMappings.ts file with the desired key-to-trigger associations. Each entry maps a trigger to the keys that fire it, for example [Triggers.KEY_COMMIT]: ["F10", "CTRL+S"].
Example: binding Shift+F1 to KEY-F1
import { Triggers } from "@renaps/migrooj_core/models";
export default {
// ...the delivered bindings...
[Triggers.KEY_F1]: ["Shift+F1"],
};
The function a key fires is a trigger like any other. In Summit's migrated Orders form (orders/functions/sOrd.triggers.mts), KEY-COMMIT on block S_ORD reads:
/** KEY-COMMIT, block S_ORD. */
const KeyCommit = async () => {
await commitForm();
};
The file is part of the front end's source code: the new mappings apply once the front end is rebuilt and deployed, like any other code change.
Do I need to reconfigure key mappings manually after migration?
No, every application migrated with ORMIT™-OpenJava is delivered with a default keyMappings.ts file, preserving most of the commonly used key mappings from Oracle Forms. Since the default mappings remain the same as in Oracle Forms, no change management is required for end users. However, developers can review and adjust the mappings as needed.
For your developers, the ORMIT™-OpenJava Developer Center has the developer guide, with its key triggers reference, in the Summit downloads. Part 3 of the video series shows how a migrated form is maintained, and the FAQ answers whether keyboard shortcuts are kept and lists the triggers, built-ins and properties.
Have more technical questions about ORMIT™-OpenJava? Contact RENAPS to schedule a deep dive session with our experts.
Oracle Forms Migration to Angular or ReactORMIT™-OpenJava Developer CenterORMIT™-OpenJava FAQ