Code to display the warning Page.

Hello experts,

None of you has code sample for the call/display "Warning Page"?
For example, when the user clicks on Save/Apply, I want the next page to view click alert message "are you sure you want to continue? OK or cancel.

Thanks in advance!

Hello

You can get the same using OADialogPage.

More details of the Toolbox tutorial,
or check the code in the example below.

If (PageContext.GetParameter (DELETE_BUTTON)! = null)
{
writeLog (pageContext, "DELETE_BUTTON BN Pressed");
Tokens [] MessageToken = {new MessageToken (TRIP_REQ_ID, salaryRequestId)};
OAException mainMessage = new OAException ("XXHR", "XXHR_TRIP_REQUEST_DELETE"); (/ /, null);
OAException mainMessage = new OAException ("XXHR", "XXHR_SAL_LOAN_REQUEST_DELETE"); (/ /, null);

DialogPage OADialogPage = new OADialogPage (OAException.WARNING,
mainMessage,
NULL,
"",
"");
String Yes = pageContext.getMessage ("AK", "FWK_TBX_T_YES", null);
String number = pageContext.getMessage ("AK", "FWK_TBX_T_NO", null);

dialogPage.setOkButtonItemName ("DeleteYesButton");

dialogPage.setOkButtonToPost (true);
dialogPage.setNoButtonToPost (true);
dialogPage.setPostToCallingPage (true);

Now define our yes/no labels instead of the default OK/Cancel.
dialogPage.setOkButtonLabel (yes);
dialogPage.setNoButtonLabel (no);
java.util.Hashtable formParams = new java.util.Hashtable (1);
formParams.put (PRESSED_BUTTON, DELETE_BUTTON);
formParams.put (TRIP_REQ_ID, tripRequestId);

dialogPage.setFormParameters (formParams);
pageContext.redirectToDialogPage (dialogPage);

} else if (pageContext.getParameter ("DeleteYesButton")! = null)
{//delete registration
}

With respect,
Kali.
OSSI.

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • Satellite P300 - CD does not read DVD

    Purchased by Satellite P300-16 t about a month ago, using Vista Home Premium. Until today, my cd/dvd rom drive worked very well. Now when I try and insert any dvd is not be recognized at all, i.e. that there is no disc in the drive. Audio CD play wel

  • TestStand 2012 launch problem

    Hello I have an annoying problem with TestStand 2012. Whenever I run the TestStand application a Visual Studio 2010 Shell dialog box appears "invalid license data. Reinstall is required. ». I have no Visual Studio is installed and I've ever had. I ce

  • Nut thread inspection

    Hi all I have an application in which I want to inspect a hole size M6 for Threading. It's a simple "go/no go" system to check if the thread is present or not. No need to thread quality, pitch, etc. Is this possible in Labview using a USB camera or s

  • UNABLE TO RE-INSTALL COMPLETE OF WINDOW7

    Hi I have a basic family window7. I have tried several times to reinstall window 7 in my laptop Acer recovery disks, but whenever we stop on the installation of cleaning (45/46). How can I fill my installation.  Help, please.

  • BlackBerry Smartphones Flickr for BlackBerry: discontinued as of March 1, 2011.

    the "Flickr for BlackBerry" app was released on June 9, 2008. http://supportforums.BlackBerry.com/T5/announcements/Flickr/m-p/12245 the application will not work after March 1, 2011: http://us.BlackBerry.com/smartphones/features/social/Flickr.jsp I q