Custom error message for Back Button Error

I am using JDeveloper 9. I have tried to create a custom error message to handle a "Back button" press.
But the error message is usually ignored and the system's regular "Stale data" message appears. Is there a way to prevent the system's message from appearing and to raise a custom error message?

Do the following coding in your processRequest() of the Create or udpate page.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
// If isBackNavigationFired = false, we're here after a valid navigation
// (the user selected the Create button) and we should proceed
// normally and initialize a new employee.
if (!pageContext.isBackNavigationFired(false))
// We indicate that we are starting the create transaction (this
// is used to ensure correct Back button behavior). Note that you
// can assign whatever name you want to your transaction unit.
TransactionUnitHelper.startTransactionUnit(pageContext, "empCreateTxn");
// This test ensures that we don't try to create a new employee if
// we had a JVM failover, or if a recycled application module
// is activated after passivation. If these things happen, BC4J will
// be able to find the row that you created so the user can resume
// work.
if (!pageContext.isFormSubmission())
OAApplicationModule am = pageContext.getApplicationModule(webBean);
// Call your method to handle creating the new row.
am.invokeMethod("createEmployee", null);
else
if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "empCreateTxn", true))
// Get the purchase order number from the request.
String orderNumber = pageContext.getParameter("headerId");
MessageToken[] tokens = { new MessageToken("PO_NUMBER", orderNumber)};
OAException message = new OAException("ICX", "FWK_TBX_T_PO_UPDATE_CONFIRM", tokens,
OAException.CONFIRMATION, null);
// We got here through some use of the browser "Back" button, so we
// want to display a state loss error and disallow access to the page.
// If this were a real application, we would probably display a more
// context-specific message telling the user they can't use the browser
// "Back" button on the "Create" page. Instead, we wanted to illustrate
// how to display the Applications standard NAVIGATION_ERROR message.
OADialogPage dialogPage = new OADialogPage(message);
pageContext.redirectToDialogPage(dialogPage);
} // end processRequest()
--Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • IPad - Error message for backing up

    This morning I tried to synch my iPad and got an error message "iTunes could not back up the iPad 'Name of iPad' because session could not be started with the iPad".
    I also saw right after that there is a software update - but don't know if this had an impact or not.  I have restarted my Mac, checked that I ahve the latest software for it, and for iTunes.  I also did a re-set on my iPad.
    I'm still getting the message - or else it won't start synching at all.
    Any ideas? 

    Tried it one more time, and everything took.    Go figure.

  • Error message for illustrator cs6: Error loading plugins. Drop Shadow.aip

    Can anyone help with this i have an assignment due and need to use the drop shadow tool....
    I am an amature also so please i would need step by step!
    Please

    Without proper system information and other details nobody can say much. Usually these errors mean that your system isn't compatible because the processor doesn't support specific operations or you run out of memory.
    Mylenium

  • Error message for CS4 Flash: "Error initiating Java Runtime Environment. You may need to reinstall Flash." How do I reinstall Flash?

    How do I reinstall Flash Professional CS4?

    First uninstall, then run the CS Cleaner Tool.  Then download, install, and activate using the serial number of the original installation.
    Adobe Creative Suite Cleaner Tool helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html
    CS4 - http://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html
    Find your serial number quickly

  • Error message for Confirmation

    Hi,
    We have a error message for back end service entry creation  in the Application monitor for Confirmations.
    There is no outbound or Inbound Idoc found with error.
    From this error message how can we found the PO Number or Confirmation number to check whether the confirmation is posted or not?
    Thannks
    Jimmi

    Hi,
    If you are doing confirmation in SRM , it is Extended classic scenario.
    error : There is no outbound or Inbound Idoc found with error
    You   have not created the IDoc  for the outbound Idoc for the confirmation to take to the backend.
    Create the Message type and partner profile in WE20
    Create Distribution model in SRM -T.code :BD 64
    we found the PO Number or Confirmation number to check whether the confirmation is posted or not
    Soln: Check in confirmation in display/process confirmation in SRM enter the  timeframe
    (or) check in R/3  in ME23N by putting the Purchase order no and check the goods receipt
    Regards
    Ganesh Kumar.G.

  • [svn:bz-trunk] 15217: Bug: BLZ-508 - If server receives message for an unknown destination it shouldn ' t include the destination name in the error message sent back to the client .

    Revision: 15217
    Revision: 15217
    Author:   [email protected]
    Date:     2010-04-05 03:43:36 -0700 (Mon, 05 Apr 2010)
    Log Message:
    Bug: BLZ-508 - If server receives message for an unknown destination it shouldn't include the destination name in the error message sent back to the client.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Changed the error message to not include destination id. I'm also checking in a few minor fixes I had locally.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-508
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java
        blazeds/trunk/modules/core/src/flex/messaging/cluster/JGroupsCluster.java

    Thanx Mete, yeah i did...
    but i solved it some other way... not entirely sure this was
    it though as i was doing a lot of things at once...
    it was fds.swc... possibly it was out of date or missing.

  • Custom Error Messages for Database Constraint Violations Problem

    Hi
    I have added a custom message bundle for the model project as explained in
    37.8.3 in the Fusion Developer's Guide - How to customize error messages for database constraint violations.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#BABEFGCI
    Constraint Name : SYS_C0018574
    And I have following CustomErrorMessages class
    public class DBCustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "SYS_C0018574",
                               "Existing Record Found" } };
        protected Object[][] getContents() {
            return sMessageStrings;
    }This works fine when I run application model and adding records to vialate the constraint. So it gives me following message
    (oracle.jbo.DMLConstraintException) Existing Record FoundBut when run ui project it does not fire.
    Still it gives the message
    ORA-00001: unique constraint (CCBS2.SYS_C0018574) violatedCould you please shed some light?
    Edited by: deshan on Mar 15, 2011 11:28 AM

    Please see the image.
    http://4.bp.blogspot.com/-Fna66p-W5Jw/TX7uSQqqBtI/AAAAAAAAAH0/D1APg6oAIxI/s1600/1.JPG
    Error in Application Module ORA-00001: unique constraint (CCBS2.SYS_C0018574) violated exception is different from ui project.
    Any hint?
    Thanks
    deshan
    Edited by: deshan on Mar 15, 2011 10:16 AM

  • Pop up error messages for failed custom validation

    I am using jdev-10.1.3.4
    My application is in ADF BC
    I am writing custom validation through managed bean, I want pop-up error message for this failed validation.
    My problem scenario is:
    I had some list box as "status"-when this status changes to failed then the other field namely "closed date" should become madantory and also date in closed date field can't be in future.I am able to have all this validation through managed bean and also able to use af:messages through which i am able to print error message on the top of the form, but i am not able to give pop up error message for this failed validation.
    I had gone thru jdev guide but there is nothing like what i am asking.
    it would be of great help if someone can give me some example also.
    thanks in advance.

    ADF has global setting where you can configure the way messages are shown to user:
    You can make this setting in adf-faces-config.xml
    The <client-validation> element controls how client-side converters and validators are run.
    Three values are supported:
    "INLINE": validation is shown inline in a page (the default)
    "ALERT": validation is shown in an Javascript alert
    "DISABLED": validation is only handled on the server
    IN your case, set it to 'ALERT'.

  • Error Message For BISystemUser: User not authenticated

    We have migrated from DEV to PROD env.(11.1.1.1 -> 11.1.1.3). Along problems with bipublisher - there are some strange thingths: we successfully loging using weblogic account into AdminConsole и Enterprise Manager, but in Answers we get an error: invalid username or password.
    nqserver.log:
    ...[ERROR:1] [] [] ... [tid: 1090] Error Message For BISystemUser: User not authenticated.
    ...[ERROR:1] [] [] ... [tid: 1090] [nQSError: 43126] Authentication failed: invalid user/password.
    In oracle support we found such issue (Doc ID 1308389.1):
    OBIEE 11g Error: "Unable to Sign in. invalid username or password was entered" After Changing Repository, Deleting BISystem User, Adding it Back (Doc ID 1308389.1)
    Applies to: Business Intelligence Server Enterprise Edition - Version: 11.1.1.3.0 [1905] to 11.1.1.5.0 [1308] - Release: 11g to 11g
    Symptoms: In OBIEE 11.1.1.3.0 using default authenticator, it is not possible to log in to OBIEE after changing repository. To troubleshoot, BIsystemuser was removed from global roles and added back again.
    Getting error: Unable to Sign in. invalid username or password was entered
    Changes: Changed repository, deleted BISystemuser, added the user back
    Cause: Several changes e.g changing rpd, deleting bisystem user, adding the user back etc. occurred in the environment and caused log in to OBIEE to stop working
    Solution: After a lot of troubleshooting e.g re-starting system in the correct order, refreshing GUIDs, re-start OBIEE with default SampleAppLite.rpd and web catalog, the error persists. The system was uninstalled and re-installed to avoid further corruption and configuration problems in the new installation. This resolved the problem
    Does we have to 'reinstall or make a lot of troubleshooting e.g re-starting system ' to solve this error?
    It seem to be funny for PROD environment. How we cam resolve this problem?

    Are you saying you upgraded both dev and prod from 11.1.1.1 to 11.1.1.3 or that you migrated a dev 11.1.1.1 to a prod 11.1.1.3? What did you migrate?
    At a rough guess the BISystemUser password is different in dev and prod (created by system on install) and in your 'migration' you've moved the dev credential across to prod.
    If that's the case you need to change the bisystemuser password to something known and update the credential store password.
    Another possibility might just be that you need to regenerate the GUIDs:
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10543/privileges.htm#BIESC721

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

  • [svn] 3722: Bug: BLZ-260 - Error message for a legacy =3. 0 client poll failing against a =3.1 server is unclear

    Revision: 3722
    Author: [email protected]
    Date: 2008-10-17 14:04:59 -0700 (Fri, 17 Oct 2008)
    Log Message:
    Bug: BLZ-260 - Error message for a legacy <=3.0 client poll failing against a >=3.1 server is unclear
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-260
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    blazeds/trunk/modules/core/src/flex/messaging/FlexSession.java
    blazeds/trunk/modules/core/src/flex/messaging/client/FlexClient.java

    your problem:
    Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
    Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
    Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more)

  • Itunessetup.exe couldn't be downloaded error message for for vista.

    itunessetup.exe couldn't be downloaded error message for for vista. Couldn't get the update so I uninstalled itunes and still get the error message. I tried reconfiguring the start up components with no luck. anybody know how to fix this?

    I actually had started on this before your post but you are right. My luck created some issues but after I got around that it worked. I uninstalled everything in the order it needed to. While I was doing this windows had an update. When I restarted something must have went wrong with the update and it crashed on the start up. took me a while to restore it but when I was done it brought back the programs in their damaged state.
    So I did the uninstall process again. restarted. and reinstalled and it all works now.
    Thank you for the help.
    For those reading this the order to uninstall goes as:
    iTunes, Apple Software Update, Apple Mobile Device Support, Bonjour, Apple Application Support, iCloud, and finally MobileMe. Skip over any you don't have installed. Then Restart then reinstall itunes.

  • Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  Sy

    Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  System Library/Application Support/Adobe.  Any ideas?  I only have 16 days left on the trial and have been unable to get it to work on my Macbook Pro.  This is all I am seeing after Lightroom opens.  Thanks!

    Thanks to both of you for attempting to help.  I finally figured out what was wrong . . . it was a Permissions problem.  Very frustrating, but after scouring the troubleshooting tips I finally found the one that solved my problem.  I had to add a User and give it Read/Write privileges to Lightroom.  The file I had to add the User to was Hidden on my Mac, so that added an even bigger challenge to the mystery.  Only a few days left on my trial version!  I hope I have time to try it out!

  • Error message for email sent

    Hi,
    I got an error message for an email sent to external user from workflow as "Message cannot currently be transferred to node SMTP due to connection Error" How to resolve it? i think i have done enough in tcode scot for email send please help me out .
    Thanks
    Parag

    do like this
    1. Execute SCOT Txn.
    2. Double click on the SMTP, an new subscreen will be displayed.
    3. Check whether the checkbox Internet is enabled or not, if it is enabled then click on the button SET beside to the internet check box.
    4. One more new subscreen will be displyed under the Address Area mention  the email id . and click OK
    and try to send the mail
    Note: befre doing all the above make sure you have done all the required settings to send  a mail

  • Customised Error Message for ESS-MSS Applications

    Hello All,
    Currently, if there are any errors in the ESS/MSS transactions, we get the 503 error with lot of irrelevant data to the users. We have a basic html page which says, "There is a issue-Please contact XXXX".
    Is there a way to replace the standard error message with this html page ?
    PS: I am not talkign about the "Dispatcher Running" or "Application Stopped" messages, Please do not point me again to SAP Help website which doesn't answer my query. THIS IS ABOUT REPLACING THE STANDARD ERROR MESSAGES FOR ESS/MSS APPLICATIONS.
    Any help is much appreciated.
    We are on EP 7.01 SP3 (ESS 1.41)
    -Raj

    Hi Raj
    Let me clarify the difference between ESS and MSS errors and JAVA stack errors
    A "503 Service  not available" is not an ESS or MSS error - this is the thrown by the stack (possibly while navigating
    in ESS or MSS)
    The only information I have available in the case of java stack errors is to follow
    http://help.sap.com/saphelp_nw70/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    Whcih indicates how to customize stack errors  like 404 or 500
    Lastly you can also decide to hide the stack trace as per KBA 1596212
    To modify an ESS or MSS message this may require modification to front and back-end HCM application - usually
    ESS gets error information based on back-end errors example "fill in all required fields"
    Hope this helps

Maybe you are looking for

  • Problem in error table of BAPI_BILLINGDOC_CREATEMULTIPLE

    Hi all I am using BAPI_BILLINGDOC_CREATEMULTIPLE and passing all the values correctly. I am getting values in error and return tables, if there are any errors. My problem is that, suppose for an order there are 2 line items. Then for the line items t

  • Payment terms---date and installments

    hello SAP gurus, the issue is that we select payment terms when we create sales and order , and we want it to be printed under , 1st installment date and amount , 2nd installement date and amout , 3rd installemnt date and amount. we have defined the

  • Is there a script to create a button to set an activated frame to document size + bleed?

    Please see my question above. Thanks in advance!

  • Oracle security

    Hi there, I was looking for some help with some Oracle security queries, first of all i have the tables employee emp_id emp_name etc project proj_id proj_name proj_budget start_dt finish_dt and a link table employee on project ep_emp_id ep_proj_id ho

  • What does this mean?Urgent

    Hi I am currently doing a project and i have some error.Can anyone explain to me what is this error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid descriptor index