Skip to Main Content

Breadcrumb

Upgrading from v23.1 or older

As of v26.1.0 the internal name of this plug-in is UNITEDCODES_CONTEXT_MENU. Up to and including v23.1 it was UC_CONTEXT_MENU. The display name changed in the same release, from United Codes Context Menu to UC - Context Menu.

APEX identifies a plug-in by its internal name, so a new version does not replace an older installation. The import succeeds, but it adds a second plug-in and your existing dynamic actions keep running the old version. Because the display name changed too, the two are easy to tell apart in Shared Components - Plug-ins: the old one is listed as United Codes Context Menu (UC_CONTEXT_MENU), the new one as UC - Context Menu (UNITEDCODES_CONTEXT_MENU).

There are three ways to upgrade, described in UPGRADE.md in the download:

  • Delete and re-select - remove the old United Codes Context Menu plug-in, import the new version, then re-select the action UC - Context Menu in every dynamic action that used it.
  • Rename inside an application export - export the application, replace PLUGIN_UC_CONTEXT_MENU with PLUGIN_UNITEDCODES_CONTEXT_MENU plus the two lines carrying the plug-in name itself, then import it back. No dynamic action has to be edited, which makes this the option to pick when an application contains many of them. Do not replace every occurrence of UC_CONTEXT_MENU - that string is also the name of the PL/SQL package, which does not change. UPGRADE.md lists the exact replacements.
  • Run both versions side by side - the new version installs alongside the old one, so you can move dynamic actions over one at a time.

Whichever you choose, it is a one-time step: all later upgrades install over the previous version normally.

Examples

Quick Picks

The live demo presents how native Oracle APEX item quick picks can be transformed into an item context menu.

Display 1, Display 2

Modal Page

The live demo shows how to open a modal page in the context of the report row. To invoke the row menu click on the icon in the first column or right-click on a row.

 
7839KING11/17/1981PRESIDENT-1600-10
7698BLAKE5/1/1981MANAGER78391200-30
7782CLARK6/9/1981MANAGER78391200-10
7566JONES4/2/1981MANAGER78391200-20
7788SCOTT4/19/1987ANALYST75661200-20
7902FORD12/3/1981ANALYST75661200-20
7369SMITH12/17/1980CLERK79021200-20
7499ALLEN2/20/1981SALESMAN7698120030030
7521WARD2/22/1981SALESMAN7698125050030
7654MARTIN9/28/1981SALESMAN76981250140030
7844TURNER9/8/1981SALESMAN76981500030
7876ADAMS5/23/1987CLERK77881100-20
7900JAMES12/3/1981CLERK7698950-30
7934MILLER1/23/1982CLERK77821300-10

Report header checkbox with menu

The live demo presents how the report header checkbox can be enhanced with additional functionality. Click on the icon next to the header checkbox to invoke the context menu. Selected rows are shown while paginating the report.

CLARKMANAGER6/9/19811200-
SCOTTANALYST4/19/19871200-
BLAKEMANAGER5/1/19811200-
ADAMSCLERK5/23/19871100-
WARDSALESMAN2/22/19811250500
JONESMANAGER4/2/19811200-
FORDANALYST12/3/19811200-
ALLENSALESMAN2/20/19811200300
JAMESCLERK12/3/1981950-
SMITHCLERK12/17/19801200-
MILLERCLERK1/23/19821300-
MARTINSALESMAN9/28/198112501400
KINGPRESIDENT11/17/19811600-
TURNERSALESMAN9/8/198115000

Button

Here we added a context menu to a standard button. If you open an emp dialog from it and close it afterwards you will see the event catched here:

You closed the dialog!

FAQ

  • How can I listen to a closed dialog event triggered by the context menu?

    Add a dynamic action of type "Dialog Closed". Set "Selection Type" to "JavaScript Expression" and set it to "window".

    To listen to a specific modal page to be closed add a "Client-side Condition" of type "JavaScript expression". Add following code referencing your desired Page ID: "this.data.dialogPageId == 1195".