How to call custom messages in groovy?
Summary: We defined custom messages in Manage Message setup task. We need to display the message over UI
Content (required): When certain condition fails, we need to throw the message to the user over UI which was defined in Manage Message
Version (include the version you are using, if applicable):
21C
Code Snippet (add any code snippets that support your topic, if applicable):
import oracle.apps.fnd.applcore.messages.ApplcoreException;
if(isAttributeChanged('EffectiveDate'))
{
throw new ApplcoreException("MOO:::MOO_REV_INV_DATE",null)
}
we got below error in validation of the script:
Error(4,9) : JBO-25152: Calling the constructor for class oracle.apps.fnd.applcore.messages.ApplcoreException is not permitted.
Tagged:
0