You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to call custom messages in groovy?

Received Response
11
Views
2
Comments
in Sales 2 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!