Created
December 9, 2022 17:26
-
-
Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.
Example code from Episode 94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?