My Oracle Support Banner

How To Change Input Locale Of A Text Item To Hebrew Automatically On Receiving Focus (Doc ID 438648.1)

Last updated on MAY 24, 2023

Applies to:

Oracle Forms for OCI - Version 12.2.1.4.0 and later
Oracle Forms - Version 10.1.2.3.0 to 10.1.2.3.0 [Release 10.1.2.3]
Information in this document applies to any platform.

Goal

 The "Initial Keyboard State" property sets the keyboard to generate either Local or Roman characters when the item receives input focus, so the end user can begin to type immediately without switching the keyboard state.

When "Initial Keyboard State" property for a text item is set to "Local" and NLS_LANG is set to HEBREW_ISRAEL.IW8ISO8859P8 for example (for right to left keyboard state), it automatically changes the "Input Locale" in case of client-server Forms implementation. The same settings do not work in case of web forms. To change the keyboard state, users have to use the alt+shift keys.

On the Web, the "Initial Keyboard State" property value is ignored and the text items always writes Roman characters, regardless of the "Initial Keyboard State" property value and/or the NLS_LANG language value.

There is an unpublished  bug logged for this:
Bug 2581687 INITIAL KEYBOARD STATE IS ALWAYS ROMAN ON THE WEB FORMS

Bug 2581687 - INITIAL KEYBOARD STATE IS ALWAYS ROMAN ON THE WEB FORMS is closed as "Not a bug" since the "Initial Keyboard State" functionality is not implemented with web forms. The reason is that Java did not have any API to support this until 1.4.

The following unpublished enhancement request has also been filed to implement the feature in Forms :

Bug 4701742 INITIAL KEYBOARD STATE PROPERTY REQUIRED TO BE IMPLEMENTED IN WEB FORMS

However, the following code can be used to implement a PJC which will switch input locale automatically for text items implementing the PJC class.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
  
 Requirements
 Configuring
 Instructions
 Sample Code
 Sample Output
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.