Key Controlled Report View in APEX

Description:

This section describes how to access components in Oracle Application Express using a keyboard.

Step:1:  By Default, report should not be visible, So we have added attribute to      region as:

 

Region Attributes : style= “display:none;”

 

Step: 2:  Create a new Html region and following javascript code for key recognition   and report view :  [Shortcut Key: Ctrl+S]

 

 

<html>

<head>

<script>

function test(e) {

e = e || window.event; //Get event

if (e.ctrlKey) {

var c = e.which || e.keyCode; //Get key code

switch (c) {

case 83:// Block Ctrl+S

e.preventDefault();     // Prevents Default Fuctionality

e.stopPropagation();

$(“#TEST_REPORT”).dialog();  // Opens Dialog

}

}

};

</script>

</head>

 

<body onkeydown=”javascript:test(event);”> </body>

</html>

 

 

Summary: This post explains how This section describes how to access components in Oracle Application Express using a keyboard.

Queries?

Do drop a note by writing us at contact@staging.doyensys.com or use the comment section below to ask your questions.

 

Recent Posts