Creating character menus
A character menu is a static list of items that can have multiple levels. Plan your menu structure before creating a character menu. The following figure shows an example of a plan, including parent and child menu items.
Design for parent and child menus
To create a character menu
- In Developer Studio, select File > New > Character Menu.
- Select the server on which to create the menu, and click Finish.
- In the Menu editor, click Add Menu to create a menu item.
An item is added to the Label/Value list (see the following figure). It has two properties:- Label—The text that appears on the menu. The default label is New Menu 0.
- Value—The text that is entered into the character field when users select this menu item. The default value is New Menu 0.
- New Character Menu
- Double-click the default label, and enter an appropriate label.
The maximum length is 80 characters.
- Double-click the default value, and enter an appropriate value.
The maximum length is 255 bytes.
The Value field applies only to selectable menu items (that is, menu items that are not parents of other menu items). - To add another item at the same level as the first item, repeat steps 3 through 5.
- To create a submenu:
Select an item, and click Add Menu Item.
A subitem (child) is added beneath the selected item (parent), and a minus sign appears to the left of the parent item. The minus sign indicates a menu expanded to show its contents. A plus sign indicates a collapsed menu. Clicking either symbol switches between the two states.
You can create as many as 15 menu levels (including the top level), but to enhance usability, use as few levels as possible.If some menu levels appear blank in the Menu editor, increase the width of the Label column until they are visible.
- Edit the subitem label and value.
A parent item can have as many as 99 sub-items.
- To add more menu items, repeat steps 3 through 7 as necessary.
For example, to create the menu hierarchy shown in the above figure:- Click Add Menu, and replace the default label and value with AR System.
- Select the AR System item, click Add Menu Item, and replace the default label and value with Utilities.
- Click Add Menu, and replace the default label and value with Clients.
- To add the third-level items, select the Clients item, click Add Menu Item, and replace the default label and value with Remedy Import.
- You can also perform these actions:
- To modify a menu item, double-click and edit its label or value.
- To expand or collapse all menu hierarchies, click Open All or Close All.
These buttons control your view of the menu definition, not how the menu appears in the UI. (When users open menus, the submenus are hidden.) - To delete a menu item, select the item, and click Delete.
Child menu items are deleted when you delete the parent menu item. To reorder the menu items, select the item to move, and click Up or Down.
The sync cache operation does not work when a menu object is renamed.
See Modifying-menus.You must manually flush the form cache to make sure that the renamed menu is reflected in the browser.
To flush the form cache, use the following URL format:
http://serverName:port/arsys/shared/config/config_cache_cleanup.jsp
- (Optional) Modify the menu's change history.
See Updating-the-change-history-of-fields-forms-or-objects. - (Optional) Add Help text to the menu.
See Creating-help-for-applications. - Select File > Save.
- In the Save Menu As dialog box, enter a name for the menu, and click OK.
Menu names must be unique on each AR System server.
Names can have as many as 80 characters, including spaces. Names can include double-byte characters, but avoid using numbers at the beginning of the name. - Attach the menu to any character field in any form.
See Creating-common-data-fields and Menu Name.