Attribute Level Validations in OAF
You Can use the below method in EOImpl
protected void doDML(int operation, TransactionEvent e) {
super.doDML(operation, e);
String value= getEmail();
if (value==null)
{
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // entity name
getPrimaryKey(), // entity primary key
"Email", // attribute Name
value, // bad attribute value
"FND", // message application short name
"XXCUS_EMAIL_REQ"); //
}
}
You Can use the below method in EOImpl
protected void doDML(int operation, TransactionEvent e) {
super.doDML(operation, e);
String value= getEmail();
if (value==null)
{
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // entity name
getPrimaryKey(), // entity primary key
"Email", // attribute Name
value, // bad attribute value
"FND", // message application short name
"XXCUS_EMAIL_REQ"); //
}
}
No comments:
Post a Comment