Wednesday, May 4, 2011

Dialog Field Validation

Here is the code for how to do the validations on Dialog.


1.Check the Null Values on Dialog
boolean getFromDialog()
{
boolean ret;
;
_CustAccount = dlgField.value();
if(_CustAccount == "")
{
checkfailed("Enter the value");
}
else
ret = true;
return ret;
}
2.Check the Condition on Dialog.
boolean getFromDialog()
{
boolean ret;
;
_CustAccount = dlgField.value();
if(_CustAccount >= "4000" && _CustAccount <="4010")
{
ret = true;
}
else
checkfailed("Enter the values bet ween 4000 to 4010");
return ret;
}

No comments:

Post a Comment

Leave your comments and solutins