apex_add_page_js
Adds inline JavaScript to a specific Oracle APEX page, with support for external JS file URLs, to activate custom client-side behaviors.
Instructions
Add inline JavaScript to a specific page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Target page ID. | |
| js_file_urls | No | URLs of external JS files to load (newline separated). Example: "#APP_FILES#mylib.js" | |
| javascript_code | Yes | JavaScript code to add to the page. This code is placed in a script block injected via a hidden static region. Example: function showConfirm(msg) { apex.confirm(msg, {title: 'Confirm'}); } // Auto-initialize apex.jQuery(document).ready(function() { initMyPage(); }); |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |