Question

Positive and Decimal Precision Validation

Hi Every one,

I have a requirement as "Property Value should be positive with 2 Decimal Precision". individually i am able to achieve,

my Solutions are 1. To Check Positive number i am using OOTB Edit Validate. 2. For 2 Decimal Precision i have created a Edit Input Rule.

If i have given both rules on Property level under Advanced tab, any one rule is getting executing.

But i want to achieve both validations. How can we achieve this.

Comments

Keep up to date on this post and subscribe to comments

Pega
September 18, 2019 - 2:23am

Hi, 

You can create a single  custom edit-validate rule to perform multiple validations - To check Decimal precision and sign of number. 

more about creating edit validate rules :

https://community1.pega.com/sites/pdn.pega.com/files/help_v731/procomhelpmain.htm#rule-/rule-edit-/rule-edit-validate/related.htm%3FTocPath%3DReference%7CRule%2520types%7CEdit%2520Validate%2520rules%7C_____3

 

September 18, 2019 - 4:22am

You can replace the "Edit Validate", with Validate rule.