Adding buttons next to text boxes

You modify the presentation.xml file for an application to add up to three buttons next to text boxes and multipart text boxes. You add the buttons for the menu items that are most frequently used.

About this task

You can select existing menus in the menus.xml file, or you can define new menus in the menus.xml file. The menu items must contain the label, event, and image attributes, for example:
label="Select Value" event="selectvalue" image="menu_icon_find.gif

The following restrictions apply when you add buttons next to text boxes and multipart text boxes:

  • Select Action menu items are not displayed if there is no lookup attribute defined for the text box. For example, Select Action menu items are not displayed next to Long description fields.
  • If the button is a link to an application and the user does not have access to the application, the button is not displayed.
  • If the menu item is defined with any conditional expressions, the button is not displayed.

Procedure

  1. Open the presentation.xml file for the application that you want to add the buttons to.
  2. Add an attribute to the text box in the presentation.xml file:
    Option Description
    To add buttons after a text box or the first part of a multipart text box Add the iconmenu attribute to the XML
    To add buttons after the second part of a text box or the Long description field Add the desciconmenu attribute to the XML
  3. In the presentation.xml file, specify the menu that defines the buttons that you want to add next to the text box.