Question
2
Replies
37
Views
Infosys
Posted: March 7, 2020
Last activity: March 9, 2020
edit-validate custom code for Valu NULL
i want to write a custom java code for if the property value NULL
Question
Question
Discussion
Question
Question
Question
Question
Discussion
Question
Question
i want to write a custom java code for if the property value NULL
Hi,
Can create an edit validate rule and add the below code with your conditions and
keep this edit validate in the advanced tab of the property (under "use validate").
boolean isValid = (theValue == "null" || theValue == null || theValue == NULL ); //your condition as required
if (!isValid) { theProperty.addMessage("blank"); // messaged to show in UI
}
return isValid;
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.
Hi
You can use OOTB pzIsNotEmpty edit validate rule if you just want to check if the value is NULL.
You can take a look at the javacode in it if you want to customize.
Hope this helps