Skip to main content

Creating a field value

Pega Community logo

Note: The following content, referenced from Pega Community, is included here to help you better achieve the module learning objectives.

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 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.
    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.

If you are having problems with your training, please review the Pega Academy Support FAQs.

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 Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice