0% found this document useful (0 votes)
1K views1 page

Validations in Pega

PRPC uses three levels of validations for properties and pages: mode validation, property validation, and object validation. Mode validation automatically prevents invalid data types. Property validation uses dictionary validation to check for invalid data types, lengths, and values. Object validation uses the Rule-Edit-Validate method to further validate properties and must be explicitly implemented. The different validation rules covered are Rule-Edit-Input, Rule-Edit-Validate, Rule-Obj-Validate, Rule-Message, Rule-Declare-Constraints, Property-Validate, and Page-Validate.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views1 page

Validations in Pega

PRPC uses three levels of validations for properties and pages: mode validation, property validation, and object validation. Mode validation automatically prevents invalid data types. Property validation uses dictionary validation to check for invalid data types, lengths, and values. Object validation uses the Rule-Edit-Validate method to further validate properties and must be explicitly implemented. The different validation rules covered are Rule-Edit-Input, Rule-Edit-Validate, Rule-Obj-Validate, Rule-Message, Rule-Declare-Constraints, Property-Validate, and Page-Validate.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q:How to use validations rules in PRPC?

To validate a property or a page is to check its value against certain rules, an d add a message to the page if validation fails. An invalid page (a page that ha s any associated messages) usually cannot be stored into the database. There are three levels of page and property validations namely, Mode validation, property validation and object validation. Mode validation is automatic and always in force. It prevents setting single val ue to a page property or value of a page mode into a string list property. Dictionary Validation takes care of preventing user inputting of XYZ to integer pr operty -20 to date property. The propertys maximum length, values entered in table edit tab, qualifiers are also tested. Dictionary validation also get performed w hen Rule-Edit-Input, Rule-Edit-Validate are applied to the property. Object Validation uses Obj-Validate method to call Rule-Edit-Validate for furthe r testing of properties. Object validation is not automatic and should be explic itly implemented in the application. The following are the validation rules covered in this section. 1. Rule-Edit-Input 2. Rule-Edit-Validate 3. Rule-Obj-Validate 4. Rule-Message 5. Rule-Declare-Constraints 6. Property-Validate 7. Page-Validate

You might also like