Edit Validate IsValidInteger Example 3

 Hi All,

In this blog we will see example 3



Follow below steps

ID = IsValidInteger


Java Source

try

{

Integer.parseInt(theValue.toString());

}

catch(java.lang.NumberFormatException  ex)

{

theProperty.addMessage("Please enter a valid number, possible cause are");

theProperty.addMessage("1. The length of entered number is not valid. 2. The entered number contains a decimal value ");

}

return true;


Thank you!! Will see you all in next blog post 😊. 


Comments

Popular posts from this blog

pxSubscript and pxListSubscript Properties In Pega

Frequently Used Date Expressions In Pega

pyForEachCount In Pega