Friday, July 29, 2016

ValidateEntity() Method in in Entity Object (EOImpl) file in oaf

-- Method Already available in EOImpl file if you enable check button in EO wizard.

-- Method in EOImpl File
Protected void validateEntity()
{
super.validateEntity();
Double value = Double.parseDouble(getAmount().toString());
if(value > 0)
{
throw new OAException(“Amount Greater than Zero..”,OAException.WARNING);
}
}

No comments:

Post a Comment