Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

IG Copy Down shortcut key throws error

InoLFeb 24 2022 — edited Feb 24 2022

I'm trying to add an IG shortcut key for Copy Down (APEX 20.2). However, it throws an error and the page won't even render:

Cannot set properties of undefined (setting 'shortcut')

The initialisation code is:

function(options) {
    options.initActions = function (actions) {
        actions.lookup("selection-copy-down").shortcut = "Alt+V";
        actions.update("selection-copy-down");
    }        
    return options;
}

I guess this has to do with the fact that Copy Down is not active when the IG is rendered, because it works for an already active action, like this one:

function(options) {
    options.initActions = function (actions) {
        actions.lookup("selection-refresh").shortcut = "Alt+R";
        actions.update("selection-refresh");
    }        
    return options;
}

Any ideas how to add a shortcut for copy down?

This post has been answered by Hamza Al-abbasi on Feb 24 2022
Jump to Answer
Comments
Post Details
Added on Feb 24 2022
3 comments
222 views