Friday 7 August 2015

DISABLING KEYS USING JAVASCRIPT IN APEX



Application customization, by using JavaScript “Key Disabling” can be achieved, thereby preventing the user from feeding the particular key input value into the system. It restricts the characters which need not to be entered into a particular field in a Form or Report  column.

To disable a key, follow these steps:

Step 1: Creation of JavaScript Function
      
Create the following JavaScript Function in the page HTML Header Region.
Source Code:
<SCRIPT language=JavaScript>
<!--
function isNumberKey(evt)
{
var charCode = (evt.which? evt.which event.keyCode
if (charCode 31 && (charCode 48 || charCode 57))
return false;
return true;
}
//-->
</SCRIPT>

Step 2: Calling the JavaScript Function

Call the JavaScript function on the particular Report Column/Field  in which the Keys has to be disabled.
onkeypress="return isNumberKey(event);"
(Or)
onclick="return isNumberKey(event);"

OUTPUT:

The Input Key does not work in the field where the JavaScript function is called, provided if the Input Key code falls between the char-code entered in to the JavaScript function.

4 comments:

  1. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative.
    Magnificent blog I visit this blog it's extremely wonderful. Interestingly, in this blog content composed plainly and reasonable. The substance of data is useful.
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    Big Data and Hadoop Training In Hyderabad
    oracle fusion financials classroom training
    Oracle Fusion HCM Classroom Training
    oracle cpq online training / Oracle CPQ Class Room Training
    Oracle Taleo Online Training

    ReplyDelete
  2. Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download Now

    >>>>> Download Full

    Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download LINK

    >>>>> Download Now

    Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download Full

    >>>>> Download LINK uH

    ReplyDelete
  3. Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download Now

    >>>>> Download Full

    Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download LINK

    >>>>> Download Now

    Oracle Masterminds: Disabling Keys Using Javascript In Apex >>>>> Download Full

    >>>>> Download LINK vy

    ReplyDelete