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
- Click in the Domains
application,
- 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.
- Click New Row, specify a value,
and click OK. This value becomes
an item in the value list.
- Repeat Step 3 for each additional value.
- Click Save.
- In the Database Configuration application, open the application
to which you intend to add the value list.
- In the Attributes tab, click New
Row and configure the attribute by using the precise values
you specified for the domain.
- To save the changes to the database:
- Sign out of the system.
- Stop the application server and wait 1 minute.
- 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.
- Start the application server and login to the system.
- 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.
- Select the text box control and click Control
Properties.
- Specify the same name for the attribute as the name you
configured in the database.
- 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.
- Click Save.