Friday, July 15, 2016

Using FND_MESSAGE in OAF Page

Using FND_MESSAGE in OAF Page

Define message in application:

You can use Application Developer - Message to create a message text. Alternatively using Functional administrator - Core Services - Messages you can create a new message as well.


Define Message
To use the message in the page controller file, use the below piece of code in processFormRequest or wherever your logic requires.

throw new OAException("<APPLICATION SHORT NAME>", "<MESSAGE_CODE>", null, OAException.ERROR, null);

This will show an Error message as long as the conditions are met on the page.

No comments:

Post a Comment