Skip to content

Instantly share code, notes, and snippets.

@hhudson
Created December 9, 2022 17:26
Show Gist options
  • Select an option

  • Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.

Select an option

Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.
Example code from Episode 94
window.onload = function() {
apex.actions.add({
name: "page-help",
label: "Get Page Help",
action: function getPageHelp(){
$('[data-id=pageHelp]').click();
}
});
apex.actions.addShortcut("Ctrl+Shift+H", "page-help");
apex.actions.add({
name: "page-item-help",
label: "Get Item Help",
action: function getItemHelp() {
$("*:focus").siblings()[0].click();
}
});
apex.actions.addShortcut("Ctrl+Shift+I", "page-item-help");
}
@DatatekEcuador
Copy link

Hello, I am using Oracle Apex 23.2.0 on Oracle Database 21c Express Edition, when trying to place the javascript code, I get the following error: apex.actions.add is not a function. Any idea what I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment