Skip to main content

Customizing Shortcut keys in Oracle ebs r12




References-
1.    Customizing Keymapping and Resource Files for Forms on the Web -fmrweb.res, fmrpcweb.res (Doc ID 1367967.1)


Objective –
1.    One of the customer’s requirement is to change shortcut keys when using Oracle forms
2.    Typical example is using shortcut key “F10” instead of traditional “Ctrl+s” for saving/committing changes done in a form.
3.    This document applies to all version of Forms on the web from Forms 6i through Forms 11g.
4.    File fmrpcweb.res is something that needs to be studied and understood before modifying.


Understanding file fmrweb.res
Location – typical ebs r12 environment
/data/prod/apps12/apps/tech_st/10.1.2/forms/admin/resource/US

For 10gR2 (forms version)
UNIX -> ORACLE_HOME/forms/admin/resource/<country>/fmrweb.res

Windows -> ORACLE_HOME\forms\fmrweb.res
FMRWEB.RES is the key definition file for webforms. It follows below convention where every key is mapped to a number –
JFN : JMN : URKS : FFN : URFD
JFN    = Java function number
JMN  = Java modifiers number
URKS = User-readable key sequence (double-quoted)
FFN    = Forms function number
URFD = User-readable function description (double-quoted)


JAVA FUNCTION NUMBER
JAVA FUNCTION NUMBER
Number
Key
Remarks
33
PageUp

34
PageDown

35
End

36
Home

37
LeftArrow

38
UpArrow

39
RightArrow

40
DownArrow

65 - 90
Ctrl+A thru Ctrl+Z
These will always have the control modifier explicitly included, as well as any other modifiers that might be used.
112 - 123
F1 thru F12

9
Tab (Ctrl+I, without the control modifier)

10
Return (Ctrl+J, without the control modifier)




JAVA MODIFIERS NUMBER
Number
Key
Remarks
0
None
Equals to the sum of the values for the modifier keys
1
Shift
2
Control
4
Meta
8
Alt


FORMS FUNCTION NUMBER
The Forms function numbers match the function numbers found in a typical Forms key binding file.

USER-READABLE STRINGS
The double-quoted strings appear when users click [Show Keys] and are used for this purpose only. These strings can be translated as needed. Note that the strings do not affect what happens when end users press the key sequence.



Real-time sample Use-case
Before modifying and files, we need to first check value for profile –
Forms Keyboard Mapping File
Sometimes, a customized file can be used for mapping keys with form functions. This profile stores location of this custom file and will accordingly set mapping.
If the above file is blank, Oracle by default uses fmrweb.res file.

Using "F10” to save/commit changes instead of traditional "Ctrl+S". Below are original settings for saving/committing transaction/changes done in a form.

[applprod@clone US]$ cat fmrweb.res | grep "Ctrl+S"
83   : 2 : "Ctrl+S"         : 36 : "Commit"
[applprod@clone US]$



Decoding above and simplyfing –
83: “S”
2  : “Ctrl”

We first took backup of file fmrweb.res and modified it as follows –
[applprod@clone US]$ cat fmrweb.res | grep "Ctrl+S"
121   : 0 : "F10"         : 36 : "Commit"
[applprod@clone US]$

Decoding above and simplyfing –
121: “F10”
0  : “None”

After reconnecting and clearing web browser cache, we were able to use F10 for saving form changes.


Comments

Popular posts from this blog

Logfile locations in EBS r12.1 and EBS r12.2

Startup/shutdown Apps tier services are started and stopped frequently and we must know logfiles when troubleshooting startup/shutdown issues. $INST_TOP/logs/appl/admin/log $INST_TOP/logs/appl/admin/log Apache OHS being part of opmn in r12.1 has continued in r12.2. Logfile locations for troubleshooting have been changed $INST_TOP/logs/ora/10.1.3/Apache/error_log[timestamp] $INST_TOP/logs/ora/10.1.3/opmn/HTTP_Server~1.log $IAS_ORACLE_HOME/instances/*/diagnostics/logs/OHS/*/*log*   OPMN Logfile locations for r12.1 and r12.2 have been changed $INST_TOP/logs/ora/10.1.3/opmn/opmn* $IAS_ORACLE_HOME/instances/*/diagnostics/logs/OPMN/opmn/* Oacore oacore in r12.1 is oc4j component and part of 10gAS. However, in r12.2, oacore is now a managed server for weblogic server $LOG_HOME/ora/10.1.3/j2ee/oacore/oacore*/ $LOG_HOME/ora/10.1.3/j2ee/oacore/oacore*/ $LOG_HOME/ora/10.1.3/opmn/oacore*/oacor...

Compile all JSP files in Oracle ebs r12.2

Before you start compiling jsps and following below steps, I recommend understanding some key differences between 11i, r12.1 and r12.2 when it comes to compiling jsps. Please follow below link and then proceed further - One-stop shop to Compile JSPs in 11i, r12.1 and r12.2 1. Take a backup of _pages directory that will be modified due to jsp compilation - $ cd $EBS_APPS_DEPLOYMENT_DIR/oacore/html/WEB-INF/classes/ $ cp -R _pages _pages29dec2019 $ ls -ld _pages* drwxr-xr-x 5 applmgr oinstall 249856 Dec 29 16:36 _pages drwxr-xr-x 5 applmgr oinstall 249856 Dec 29 16:56 _pages29dec2019 2. Stop apache, oacore and oafm services - adapcctl.sh stop admanagedsrvctl.sh stop oacore_server1 admanagedsrvctl.sh stop oafm_server1 3. Compile the jsps manually using the below command - $ cd $FND_TOP/patch/115/bin/ $ perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile --flush -p              4. Check class file last mo...
Defragment workflow related tables in r12   References- 1.     How to Reorganize Workflow Tables? (Doc ID 388672.1) 2.     EBS Workflow (WF) Analyzer (Doc ID 1369938.1) Points to Remember –     Some workflow tables are associated to queues so that it is necessary to use the advance queuing instructions to reorganize them. For tables other than queue tables, please refer to different notes created by RDBMS team to reorganize tables. This activity depends on the RDBMS version.       Defragment tables in workflow r12 Verify tables are not associated to queues – SQL> select queue_table from dba_queue_tables   2   where queue_table like '%WF%'; QUEUE_TABLE ------------------------------ WF_CONTROL WF_DEFERRED WF_DEFERRED_TABLE_M WF_ERROR WF_IN WF_INBOUND_TABLE WF_JAVA_DEFERRED WF_JAVA_ERROR WF_JMS_IN WF_JMS_JMS_OUT WF_JMS_OUT WF_NOTIFICATION_IN WF...