Setting a Static Valid Values List

A static valid values list is set at design time. You can use a static valid values list when you know that the list is unlikely to change very often, and when it will contain relatively few options.

The main advantage of a static valid values list is easy to configure, and does not require writing any code. If you want the list of valid values to change frequently, you are better off using a dynamic list obtained from a database or other data source.

To define a list of valid values:

  1. In the Valid Values section of the attribute editor, select Static List. and check the Edit Value Descriptions option. The Values table will appear.
  2. You can choose to add value descriptions by checking the Edit Value Descriptions checkbox. If you set this option, a Description column will appear in the table.
  3. To add an entry to the table, click on the Add icon (Add icon
				) and enter a numeric value in the Value column and, if you've set value descriptions, also add a descriptive text in the Description column. To delete an entry in the table, select the entry and click on the Remove icon (Remove icon
				).
  4. Once you are done adding entries to the list, make sure the Default Value field is set to a value (not a description) that exists on the list.
    Note: When an attribute is configured with a valid values list, the Default field must be set to one of the valid values. If it isn't, an error condition is indicated.
  5. Save your changes and close the editor for this attribute.