Defining value lists based on field values
A value list created from the values in a field in the current file or another file is dynamically updated whenever the values in the field change. If the field is in a related table, you can show all the values in the field, or only the related values.
-
Choose File > Manage > Value Lists.
-
In the Manage Value Lists dialog, click New.
-
In the Edit Value List dialog, for Value List Name, type a name.
-
Choose Use values from field.
-
In the Specify Fields for Value List dialog, for Use values from first field, select the table that contains the field you want, then select the field in the list.
If the table you want is in another file and doesn't appear in the list, choose Manage Database, then add the table to the relationships graph. See Creating and changing relationships.
-
Choose whether to display all the values in the field or only related values:
To include only related values in the value list, choose Include only related values starting from, then choose a related table from the list. The value list displays only field values from records that satisfy the relationship criteria specified between the related table and the table containing the field selected in the Use values from first field list. See Example of a value list that includes only related field values.
-
To also display associated values from a second field, select Also display values from second field, select the table that contains the field you want, then select the field in the list.
Select this option to display the values from a corresponding field after the values in your value list. For example, to help with data entry, you could display part names next to part numbers. If Also display values from second field is dimmed, first select a field in the left field list, as described in step 5.
Note During data entry, a value list that displays values from two fields still enters data only from the first field specified in step 5. The second field in the value list is for display only, and its value is not entered into any field. However, you could use a lookup to automatically enter the data from the second field. See Defining and updating lookups.
-
If you selected a second field to display values:
-
Choose which field to use for determining the value list sort order.
-
Select Show values only from second field to display values from the second field, but store the data from the first field.
If you don't select Show values only from second field, the value list displays both fields; for example, a pop-up menu displays both fields.
-
-
To display the values that are in a text field in a specific language's dictionary sort order, select Re-sort values based on and choose a language. Otherwise, the values are sorted in the index order of the field's default language. This setting is ignored for other types of fields.
-
Click OK three times.
-
Format a field to display values from the value list.
See Setting up a field to display a pop-up menu, checkbox set, or other control.
Notes
-
Fields from ODBC data sources can be used in value lists, but character large objects (CLOBs) such as long text strings are not supported.
-
For value lists with ODBC data, the No access privilege and Limited custom privilege are not supported. To prohibit a user from seeing ODBC data in a value list, you must enforce row-level security in the external SQL database. See Editing value list privileges.