Saturday, November 21, 2009

OAF : Error Message

Put the below code into xxxAMImpl.java
------------------------------------------------

public void errorMessage(){


if (Row1.getClientId() ==null)
{
MessageToken[] errToken = {new MessageToken("ABC", Row1.getClientName()),
new MessageToken("XYZ", Row1.getClintId())};
throw new OAException("ABC","ABC_VALIDATION_NULL", errToken);
}

}