Previous Topic: menuItemNext Topic: priMatrix


menuItemLocal

The menuItemLocal macro defines an item on a menu that invokes a JavaScript function in the form containing the menu. You define a menubar page with the startMenubar, menubarItem, endMenubar, startMenu, menuItem, menuItemLocal, and endMenu macros. For example:

<PDM_MACRO name=startMenubar. . .>
<PDM_MACRO name=menubarItem. . .>
<PDM_MACRO name=menubarItem. . .>
. . .
<PDM_MACRO name=endMenubar>
<PDM_MACRO name=startMenu. . .>
<PDM_MACRO name=menuItem. . .>
<PDM_MACRO name=menuItemLocal. . .>
. . .
<PDM_MACRO name=endMenu>
<PDM_MACRO name=startMenu. . .> 
. . .
<PDM_MACRO name=endMenu>
. . .

This macro has the following properties:

function=script

(Required) Specifies the JavaScript function invoked when the menu item is selected. This function must be available in the form containing the menu.

hotkey=string

Provides a hotkey suggestion for this menubar item. CA Service Desk Manager selects the hotkey for the menubar item from the characters in the string; otherwise, it selects the hotkey from the characters in the label.

icon_name=string

Specifies the name of an image file displayed as an icon on the menu next to the menu item.

id=name

Specifies a JavaScript ID for the menu item.

label=text

(Required) Specifies the text of the menu item.

tooltip=string

Specifies a tooltip for the icon.