Adding a value list to a text field

You can add a lookup icon to a text box control and configure a list of values that users can select from when they click the icon.

Before you begin

You can use an existing lookup value list or you can configure a new one. To create a value list, configure a domain that contains the values and associate the domain with an attribute. To use an existing lookup value list, export the system XML and locate the relevant Lookup ID in the lookups.xml file. When you assign lookups for a field that has a table domain, you use a lookup from the application that the field is in. You cannot use the VALUELIST lookup with table domains.

Procedure

  1. Click Add New Domain > Add New ALN Domain in the Domains application,
  2. In the ALN Domain window, specify values in the required fields. You must use precisely the same values when you configure the associated attribute in the Database Configuration application. The data type determines whether options in the list are displayed as uppercase, lowercase, or either. The length determines the width of the list. A length of 10 is adequate for most purposes.
  3. Click New Row, specify a value, and click OK. This value becomes an item in the value list.
  4. Repeat Step 3 for each additional value.
  5. Click Save.
  6. In the Database Configuration application, open the application to which you intend to add the value list.
  7. In the Attributes tab, click New Row and configure the attribute by using the precise values you specified for the domain.
  8. To save the changes to the database:
    1. Sign out of the system.
    2. Stop the application server and wait 1 minute.
    3. Open a command prompt, change the directory to install_home\tools\maximo, and run the configdb command to add the new default value to the database.
    4. Start the application server and login to the system.
  9. In the Application Designer, drag a text box control from the Control Palette to a section in the workspace. An Invalid Binding message is displayed in the text box. When you associate the control with an attribute, the message no longer displays.
  10. Select the text box control and click Control Properties.
  11. Specify the same name for the attribute as the name you configured in the database.
  12. Specify Valuelist as the value in the Lookup field. A lookup icon is displayed next to the text box control and the Invalid Binding message is no longer displayed.
  13. Click Save.


Feedback