Accessing Menu Item PeopleCode
This section provides an overview of menu item PeopleCode and discusses how to:
Define PeopleCode pop-up menu items.
Access menu item PeopleCode.
PeopleTools menus are one of two types, either pop-up or standard, both of which are standalone definitions in the project hierarchy. However, you can only associate PeopleCode with menu items in pop-up menus.
The menu item event set consists of a single event, the ItemSelected Event. This event fires whenever an user selects a menu item from a pop-up menu.
Note: Do not confuse menu item PeopleCode with PeopleCode functions related to the appearance of menu items, such as CheckMenuItem.
To define a PeopleCode pop-up menu item:
In the open pop-up menu definition, double-click the menu item to access its properties.
If you are creating a new menu item, double-click the empty rectangle at the bottom of the pop-up menu.
The Menu Item Properties dialog box appears.
If this is a new menu item, enter a name and a label for the item.
Select PeopleCode from the Type group box.
Click OK to close the Menu Item Properties dialog box.
To access pop-up menu item PeopleCode:
Open the pop-up menu definition.
Right-click the menu item and select View PeopleCode.
The PeopleCode Editor appears, displaying the associated program for that menu item, if any.