CA Technologies Prerelease Documentation. Authorized Use Only.
The menubarItem macro defines an item on a menu. The item invokes a JavaScript function in the main CA Service Desk Manager form, even if the menu is in a pop-up form. Use the menuitemLocal macro to invoke a local function. 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:
Specifies whether this item is an extended menu item supporting disabling, hiding, and changing an image.
(Required) Specifies the JavaScript function invoked when the menu item is selected. This function must be available in the main CA Service Desk Manager form, and not in the pop-up form containing the menu. Menu items invoking functions in the pop-up form should be defined with the menuitemLocal macro.
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.
Specifies the name of an image file displayed as an icon on the menu next to the menu item.
Specifies a JavaScript ID for the menu item.
(Required) Specifies the text of the menu item.
Specifies whether extended menus use the function in the local frame. This property is not intended for customer use.
Specifies a tooltip for the icon.
|
Copyright © 2012 CA.
All rights reserved.
|
|