30.1 ADD_MENU_ENTRY Procedure
This procedure adds a builder extension menu link. Requires the APEX_ADMINISTRATOR_ROLE.
Syntax
APEX_EXTENSION.ADD_MENU_ENTRY (
p_label IN VARCHAR2,
p_url IN VARCHAR2,
p_display_sequence IN NUMBER DEFAULT NULL,
p_description IN VARCHAR2 DEFAULT NULL,
p_is_public IN BOOLEAN DEFAULT FALSE,
p_tab_identifier IN VARCHAR2 DEFAULT NULL,
p_workspace IN VARCHAR2 DEFAULT NULL )Parameters
| Parameter | Description |
|---|---|
p_label |
Menu entry label. Must be unique within a workspace. |
p_url |
The menu entry's URL. |
p_display_sequence |
(Optional) Display sequence for sorting menu entry. Default NULL: the value is calculated and the entry is appended as last. |
p_description |
(Optional) Description. |
p_is_public |
Default If If the given workspace is not enabled for hosting extensions, the flag is set to |
p_tab_identifier |
Used to name the target browser tab the link is opened in. If the tab doesn't exist yet, it is opened on clicking the link. If it does exist already, the tab is reused to open the link clicked. Multiple extension menu entries can have the same tab identifier, which lets all those links open in the same tab. If left empty, a unique tab name is generated to ensure the link opens in the same tab again. |
p_workspace |
Default NULL, which means the menu entry is created for the current workspace. Value can be set to any existing workspace name. |
Example
The following example adds an extension menu link in workspace MY_WORKSPACE with label "Example."
BEGIN
apex_extension.add_menu_entry(
p_label => 'Example',
p_url => 'https://example.com'
p_description => 'This is an example'
p_workspace => ' MY_WORKSPACE' );
END;Parent topic: APEX_EXTENSION