Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Creating a field value

Updated on April 6, 2022

You can create field values to restrict the values of a property to a list of allowed values. Configure values that are meaningful to users so that the purpose of each value in the list is clear. For example, to prepare a list of values that a hospital administrator uses to select a medical procedure code, use a simple, readable name, such as appendix removal.

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 CreateData ModelField 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.
    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 with class name Work-, field name pyRootCause, and field value Facilities makes a "Facilities" value 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 display 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.
  4. In the Context section, in the Apply to field, select the class in which you want to apply the allowed value.
  5. Click Create and open.
  6. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us