Display and Validation Section In Property General Tab

 Hi,

In this blog we will one different way of validating property in pega.




After creating property in Pega. Inside General Tab we have Display and Validation section. 

Inside this section we have Table type = Class Key Value





Class Key Value table validation

Use Class Key Value to use a concrete class, rather than field value rules, as the source 

of acceptable values for the property. Class Key Value specifies a class to validate the input values against.


When you select Class Key Value, Table Description fields appear. Complete them to identify a 

range of keys in a class other than the Applies To class of the property you are defining.




Validation class

Select a concrete class that stores the set of acceptable values.

Depending on the number of keys defined for the class (in the Keys array of the class's rule form, certain conditions must be met:



If class has: One key value

Then:

Corresponds to the valid value for the property you are defining.



If class has: Two key values value

Then:

The first key value must act to group values for the second key.

The second key value corresponds to a valid value for the property you are defining.



If class has: Three key values  value

Then:

The first key value must correspond to a class (the standard property pyClassName.

The second key value must act to group values for the second key.

The third key value must act to group values for the third key.




Comments

Popular posts from this blog

pxSubscript and pxListSubscript Properties In Pega

Frequently Used Date Expressions In Pega

pyForEachCount In Pega