Edit validate for property with different page context than pyWorkPage

Hi All,


I am not able to validate length of a text property 'XYZ' using edit validate rule, I am invoking the edit validate rule in property rule form under use validate (as it is my requirement).

The context of the property is pyWorkPage.ABC.XYZ

Where .ABC is a PageList property and XYZ is my property(text). This .XYZ will exist for every index of .ABC.

Please help me to achieve this requirement.




Keep up to date on this post and subscribe to comments

July 16, 2019 - 12:29am


Can you cross check or try using the java source code for validate rule given below to validate the length of the property.

java.util.regex.Pattern pattrn=java.util.regex.Pattern.compile("^{3}+$");
java.util.regex.Matcher match=pattrn.matcher(new String(theValue));
boolean status= match.find();
return status;


July 16, 2019 - 6:06am
Response to bogap

Hi Priyanka,

Thank you for your reply.

I tried the solution you have suggested and it seems it is not working.

Observation with your approach:

1. I believe your regEx is to validated for min of 3 chars, it is failing in my scenario. I tried for 4, 5, 6 chars also. Even it is throwing validation error for 1 char.

2. Your code is not working for client side events (on change,as edit validate should work) however, it is getting fired on server side actions(Submit , Save).

Please be informed that context  of my property is pyWorkPage.ABC.XYZ(text) 

Thank you.