How the message of Confirmation of the display when the data is stored in the DB?

Hello.

I'm persistence data entered by the user to the database table. But I want to display a custom as "Stored successfully" or "Unregistered" message

I use same optics in my controller and AM impl

of the PFR:
----------
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);

OAApplicationModule am = pageContext.getApplicationModule (webBean);

am.invokeMethod ("insertDataToDeviceDetailsTable");


}


am Impl:
------------------

public void insertDataToDeviceDetailsTable() {}

getDBTransaction () .commit ();

delegation of control to the details Page of the device



}


How to do? and also what is the best way to show messages in this scenario. As in some pages, a dialog box appears and the page become inactive.

waiting for response...



Kind regards
Ajay

Hello

You can message pint after the am.invoke method:

' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);

OAApplicationModule am = pageContext.getApplicationModule (webBean);
am.invokeMethod ("insertDataToDeviceDetailsTable");
throw new OAException ("successfully stored", OAException.INFORMATION);
}

am Impl:
--------------------------------------------------------------------------------
public void insertDataToDeviceDetailsTable() {}
getDBTransaction () .commit ();
}

Sushant-

Tags: Oracle Applications

Similar Questions

Maybe you are looking for