Skip to main content

Field values

Field values

When building an application, you often need to use a list of allowed values for a specific property. If the list of allowed values is short, mostly static, and shared by all case types in the application, the list of allowed values may be defined in a local list on the property record.

If the list of allowed values is large, expected to change frequently, or specific for each case type, you can use a field value.

Field values provide an alternate method for defining allowed values for properties. Field values enable you to manage the list of allowed values separately from the property. Managing the allowed values separately from the property enables you to reuse a single property, and customize the allowed values based on the context of the property. Field values also make it easier to localize words, phrases, and sentences that appear on portal displays, reports, and user forms.

For example, in a Pega Platform™ application, every case instance has a status, which changes as the case progresses through the case life cycle. The status of a case is set using the property named .pyStatusWork. The list of allowed values for setting .pyStatusWork is defined by using field values.

You can add different field values for a single property in the same context or in separate contexts using the apply to class setting for each value. You can also use rulesets to maintain different versions of each field value in each context.

In the following image juxtaposition, the Pega-provided property used to set the status of a case — .pyStatusWork — uses a common set of out-of-the-box values as defined in the Work- context. This common set of allowed values are available for all applications built on Pega Platform. Additional custom values are defined for each case type in the HRApps application. These values are usable in the TGB-HRApps-Work-Candidate and TGB-HRApps-Work-Onboarding contexts (case types).

In the center of the following image, slide the vertical line to compare the field values for the Candidate and Onboarding case types.

Check your knowledge with the following interaction.

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

Did you find this content helpful?

100% found this content useful

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