Skip to main content

APEX Plug-ins

Prerequisites

The APEX Message Service APEX plug-ins require Oracle APEX 19.2 or higher.

The AMS plug-ins rely on a PL/SQL package ams_api_pkg that must be compiled first.

To make the package available, go into SQL Plus, SQLcl, SQL Developer, or SQL Workshop and run the SQL Script ams_api_pkg.sql.

The packages are automatically installed if you import the AMS Sample App and run the Supporting Objects.

Import and Configure

Follow these steps to import the plug-in in your application:

  1. Access your target Workspace.

  2. Select the Application Builder.

  3. Select the Application where you wish to import the plug-in> (plug-ins belong to an application, not a workspace).

  4. Access Shared Components > Plug-Ins.

  5. Click Import >.

  6. Browse and locate the plug-in installation file. In the AMS zip file, you can find them under plug-ins/. You will need one of the following files depending on the plug-is you wish to use:

    • dynamic_action_plugin_unitedcodes_ams_da.sql (AMS DA Plug-in)
    • process_type_plugin_unitedcodes_ams_process.sql (AMS Process Plug-in)
  7. Complete the wizard.

  8. (Optional) Repeat these steps for the remaining AMS Plug-ins.

Follow these steps to finish your Plug-in installation by adding your Plug-in API key:

  1. Login into https://www.united-codes.com/ords/r/uc/ams_portal/
  2. Copy your API key from the Dashboard (No API Key needed for on-premises installations -only needed if using the AMS Cloud Service).
  3. Access your target APEX Workspace.
  4. Select the Application Builder.
  5. Select the Application where you have installed the plug-ins (plug-ins belong to an application, not a workspace).
  6. Access Shared Components > Component Settings.
  7. Here select APEX Message Service (AMS) [Plug-in].
  8. Add the API key that you copied in step 2.
  9. Click Apply.
  10. (Optional) Repeat steps 7 - 9 for all remaining AMS plug-ins
  11. Installation is now completed
Installation note

To use the AMS PL/SQL API, you may need to configure your ACL (Access Control List) settings to allow access to: http(s)://api.ams.united-codes.com
For more details, please refer to the Oracle APEX installation guide:

Change the following script with your APEX version:

BEGIN
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
host => '*',
ace => xs$ace_type(privilege_list => xs$name_list('connect'),
principal_name => 'APEX_230100',
principal_type => xs_acl.ptype_db));
END;
/

In case you want to update some plug-in settings, you can find the plug-in settings in Shared Components > Component Settings > APEX Message Service (AMS) [Plug-in].

You can change the AMS URL, API Key, Server Listen Event Name, and Client Listen Event Name.