Example: Adding buttons next to a multipart text box

You want to add buttons next to a multipart text box so that users do not have to search the Select Action or Detail menus. You identify the menu items that users require most frequently for the multipart text box. No existing menus include the items so you create a menu that is called ICONTEST1 in the menus.xml file.

When there are no restrictions on the text box or user, the first three menu items that are defined in the menu are displayed. When there are restrictions on the text box or user, a menu item might not be displayed and the next menu item is displayed instead.

You identified the five menu items that users require most often: You create a menu that is called ICONTEST1 that specifies five menu items:
<menu id="ICONTEST1">
	    <menuitem id="icontest1_mi1" label="Select Value" event="selectvalue" image="menu_icon_find.gif" />
	    <menuitem id="icontest1_mi2" label="Go To" event="applink" image="menu_icon_link.gif" applinkid="ci"  />
	    <menuitem id="icontest1_mi3" label="Go To" event="applink" image="menu_icon_link.gif" applinkid="asset"  />
	    <menuitem id="icontest1_mi4" label="Classifications(w/Sigopt)" event="searchClassificationCI" 
image="action_insert_launch.gif" sigoption="REFICONS" />
	    <menuitem id="icontest1_mi5" label="Attributes" event="searchAttributeCI"  image="menu_icon_catalog.gif" />
</menu>

In the Control Properties window of Application Designer, you specify ICONTEST1 as the ID.

Look up icons or Select value menu items are not shown next to Long description fields so the first button is not displayed. If the user group does not have access to the sigoption REFICONS, the fourth menu item is also not displayed. In this case, only the buttons for menu items 2, 3, and 5 are displayed as buttons next to the Long description field.



Feedback