We are going to add some entries to the default pop-up menu. This is standard in all forms and is activated by right-clicking the mouse. We are going to add three different types of pop-up menu items as follows:
A pop-up menu item
A pop-up menu item with a line separator
A pop-up menu item that is disabled
To achieve this we need to perform the following tasks:
Adding items to a pop-up menu
Compiling the form
Capturing pop-up menu events
We are going to modify the pop-up menu, which is activated by a right mouse click when in the block. We therefore need to create the additional pop-up menu items in a PRE-POP-UP
trigger at block level.
To add a PRE-POPUP-MENU trigger, perform the following steps:
1. In Forms Developer navigate to Data Blocks | PER_SOCIETIES | Triggers.
2. Create a new trigger at block level called PRE-POPUP-MENU.
3. In the PL/SQL Editor, initiate the pop-up menu items with the following lines of code:
APP_POPUP...