Question


Evonsys
IN
Last activity: 17 Oct 2016 13:45 EDT
Edit Validate
Hi All,
What is the use of Edit Validate Rule "IsBlank".
Thanks,
Dinesh Ponnusami.
***Updated by Moderator: Lochan. Removed user added Ask the Expert, helpme and FAQ tags. Apologies for confusion, shouldn't have been an end-user option; updated categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
IN
As per the code in the edit validate rule "isBlank" what I can interpret is it will check whether the value in the property is empty or not.
But my guess is you are confused with the comment in code /history contetnt of the rule which was wrongly saved as from another rule.Please ignore it.


Evonsys
IN
Hi Kodup,
I can understand that the edit validate rule will throw an error "Cannot be Empty" if i left the property value unfilled. But in my case it's not throwing the error. That's why i wanted to know the purpose of it.
Dinesh.


BlueRose Technologies
IN
Hi Dinesh,
Instead of using IsBlank edit validate rule, you can make it as required field right.
Thanks,
Prudhvi


Evonsys
IN
Hi Prudhvi,
I want to know what that Edit Validate rule is doing. Is it working or not.
Dinesh.


Evonsys
IN
Hi All,
I didn't get a clear answer for this. Can someone help me.
Regards,
Dinesh.


Pegasystems Inc.
IN
Hello Dinesh,
Thanks for posting your query on PSC.
From the Validate rule 'isBlank', I see that this rule checks if the specified string is a valid class name.
Refer the below Java source of this rule:
/*
* Class names are made up of 'words' which are identifiers, separated by single hyphens.
* Identifiers-start with an alpha character and have alphanumerics in the rest, underscore is also allowed but seldom used.
* valid: this-is-a-class
* valid: this-class-is-number_1
* invalid: this-1-is-invalid
*/
boolean isValid = (theValue.length()>0);
if (!isValid)
{
theProperty.addMessage("Cannot be Blank.");
}
return isValid;
PS: My observation is from Pega 7.1.8.
I hope this answers your query.
Regards,
Rincy
Hello Dinesh,
Thanks for posting your query on PSC.
From the Validate rule 'isBlank', I see that this rule checks if the specified string is a valid class name.
Refer the below Java source of this rule:
/*
* Class names are made up of 'words' which are identifiers, separated by single hyphens.
* Identifiers-start with an alpha character and have alphanumerics in the rest, underscore is also allowed but seldom used.
* valid: this-is-a-class
* valid: this-class-is-number_1
* invalid: this-1-is-invalid
*/
boolean isValid = (theValue.length()>0);
if (!isValid)
{
theProperty.addMessage("Cannot be Blank.");
}
return isValid;
PS: My observation is from Pega 7.1.8.
I hope this answers your query.
Regards,
Rincy


Evonsys
IN
Hi Rincy,
theValue.lenght()>10 - This checks whether the length of the "theValue" is grater than zero.
And there are not Specific pattern validation rules found in this code so where is it getting validated.
Can you please help me in understanding that.
Thanks and Regards,
Dinesh


Pegasystems Inc.
IN
Hello Dinesh,
I will get back to you on the query 'where is it getting validated?'
Regards,
Rincy


Evonsys
IN
Hi Ricny,
Thank You So much. It will more helpful if you can tell me that.
Regards,
Dinesh.


Evonsys
IN
Hi All,
I didn't get a clear answer for this question. Can someone tell me where this IsBlank rule can be used.
Regards,
Dinesh


Pegasystems Inc.
US
isBlank is an edit validate rule often I see this referenced on a property rule on the advanced tab uder use validate. An ootb example is:
Rule-Application-UseCase pyPurposeNoValidate


Pegasystems Inc.
IN
Hello Dinesh,
Apologies for delay in response.
Unfortunately, I did not find answer to the query raised 'where is it getting validated?'. Someone else would surely share their thoughts over here.
Regards,
Rincy


Pegasystems Inc.
IN
Hello Dinesh,
Apologies for delay in response.
Unfortunately, I did not find answer to the query raised 'where is it getting validated?'. Someone else would surely share their thoughts over here.
Regards,
Rincy


Evonsys
IN
Hi Rincy,
Thank You