Creating a field value

You can create field values to restrict the values of a property to a list of allowed values. Configure values that are meaningful to the user so that the purpose of each value in the list is clear. For example, to prepare a list of values used to select a state or territory, use standard abbreviations or the full name of each state or territory.

A field value has three key parts: a class name, a field name, and a field value. Two or more field value instances where the first two key parts are identical are known as a subset.

  1. In the header of Dev Studio, click Create > Data Model > Field Value
  2. In the Label field, enter a description for the field value.
  3. In the Field Name field, enter the name of a single-value property.
  4. Optional: If this field value supports language localization by using a language-specific ruleset, enter language-specific descriptive text for the value.
    For example, the standard field value Work-.pyRootCause.Facilities makes a value "Facilities" available as a selection choice for the value of the Work-.pyRootCause property. To present a French-language version of facilities, copy this standard rule into a language-specific ruleset (ending in _FR to match a locale) and enter "Équipements" as the Localized Label.
    1. Click View additional configuration options.
    2. In the Translated value field, enter a literal constant that is an acceptable value for the Field Name property, using only letters, numbers, single spaces, and a hyphen. The value might appear in a selection list or other aspects of the application user interface, so choose text that is meaningful to your user community. Enter no more than 64 characters. If the class and Field Name key parts together identify a Single Value property that has a Maximum Length value of less than 64, that limit applies.
  5. In the Apply to field, select the class in which you want to apply the allowed value.
  6. Click Create and open.
  7. Click Save.