Redirect to another page and set the error or success message from process

I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
begin
    -- some code here
exception when others then
    owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
end;

>
Please update your forum profile with a real handle instead of "973239".
I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
begin
-- some code here
exception when others then
owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
end;
Use the <tt>f</tt> function's <tt>notification_msg</tt> parameter to pass the error message in the URL:
  owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::&notification_msg=' || apex_util.url_encode(l_error_msg)); 
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)

Similar Messages

  • How can I eliminate the toolbar that comes up every time I swith websights and says Firefox prevented this page from automatically redirecting to another page and when nothing comes up I have to hit ALLOW and most of the time it screws me up

    I am running OS10 on a MAC and every time I go too another web site (most of the time) a new tool bar pops up that says " Firefox prevented this page from automatically redirecting to another page" and on the other end I must hit the button ALLOW because it is usually screwing me up and Iwant to disable it or use another browser

    Options > Advanced > General, un-check "Warn me when web sites try to redirect or reload the page"
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I am always notified when redirecting to another page and I now want to disable that feature and how can I ALLOW all the time?

    I always get a warning notice that Firefox can "Allow" or "Don't Allow" the redirection to another page. I am now SICK of that feature and want to know how to turn it off, please.

    Try this instead:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. Select the backup volume from the left side list. Click on the Erase tab in the DU main window.
    3. Set the format type to Mac OS Extended (Journaled.)
    4. Click on the Erase button.
    You will need to reconfigure Time Machine preferences for the backup.
    FYI: Never remove Time Machine backup data except through the Time Machine application. If you aren't sure about using Time Machine then visit Pondini's Time Machine FAQ for help with all things related to Time Machine.

  • Out of the box web part automatically redirect to another page while setting properties

    Hi
    I have a situation where by if I click the + sign in front of a grouped property to customize the individual properties of a web part - the web part automatically redirects away to another page.
    A typical example is the "Table of Content" web part in the attached image.  If I click the + sign in front of either Content, presentation or Organization then the web part just closes off and the page redirects away.  I am able to
    open the + sign in front of Appearance, Layout & Advanced.
    Environment is SharePoint 2010, Service Pack 1 and highest hot fix is
    KB2597150.
    Has anyone experienced this to be able to advise a fix?

    Hi Andy,
    Thanks for your response and at least problem identified.
    No custom code but the only java script is on the master page which incorporates OnClick events for google analytics.  I have removed it and it seems to stop that behavior.  Root cause now known and I can investigate further.
    Thanks
    S.

  • Passing a request to another page and displaying the new pages URL

    I've got a number of pages on my site that communicate with a database. Everything is working well but I am now trying protect myself from Stupid User Errors.
    Specifically when a user performs a database operation and then hits the refresh button repeatedly on the page that did the operation. (SQL Inserts are particularly ugly in this situation)
    My problem is that both the data handling and the resulting page rely on information in the request object from the original form.
    I've tried processing the information on one page and then sending a redirect but this loses the request object. I've also tried using the forward method but it only displays the result page, it doesn't actually send the user there so refreshes will still mess me up.
    What I really want is to do all my SQL operations on one page and then send them to a results page that can be refreshed as many times as they like without corrupting my database.
    Any ideas?
    Pete

    The thought occurs to me that if you call an INSERT operation on your database, the database itself will employ deadlocks to prevent someone else (such as a refreshed session) from inserting into the database until the first query is completed.
    So one thing you could do is modify your class object to first do a one-tuple SELECT and compare it with your INSERT statement. If the line exists, then abort the INSERT. This is more compute-intensive, but it is about the only way you can guarantee that regardless of the session-tracking technique you use, the desired value will never be inserted twice.
    You should double check with your local DBA though - some databases actually do ignore multiple inserts if all of the field values are the same as an existing record, and other databases are tweaked such that updating a record over and over incurs a very minor performance hit such that it's not worth guarding against such a situation.
    The only time I would be worried is if you somehow record a timestamp of when the information was actually submitted. And that's fairly easy to fix with Javascript - once the fields are filled in, mark a hidden field. If the fields change subsequently, change the hidden field. If the fields don't change (i.e., person submits over and over), then you keep the original timestamp, the tuple is exactly the same and the database ignores the duplicate INSERT.

  • As a novice emailer, I keep getting "Firefox prevented this page from automatically redirecting to another page" and I have to close and start over again EVERY TIME.

    I don't use this computer's new gmail very often. Therefore, I had some 150 emails that I was trying to go thru & delete if possible. Many emails gave another site to go to complete my understanding of this email. But "Firefox prevented...." statement appears on the top w/ only a blank screen. I try to go back a page...nothing happens. I have to close all the tabs and get out of it completely. Then I have to click on Firefox icon...go to gmail...select the same email if there was more to read on it or just skip to the next new email. Very frustrating to a computer-illiterate. I don't understand any of the computer lingo (jave...etc); it took me 1 hour to figure out how to get to this space to type in this question. I have already failed 3 times in asking/typing in the question box. PLEASE try not to give me technical phrases.....left, right, top, works best for me.... mahalo, cecile

    I don't know if this is still a problem but to stop it go to Firefox>Options>Options>Advanced>General Then third line down there is a box to remove the warnings. (These instructions are for Firefox4; I don't know how to access this from other versions.)
    I'm also not sure whether this just removes the service of stopping redirection or whether it just removes the warning so beware.

  • How to submit a page and set the focus on the next field?

    Hello,
    I have a form with some fields and below this a report with a column link. If I change values in the form fields and I click the on a column link the changes in the fields are lost because the page is not submitted.
    I try this: I set on the fields in HTML Form Element Attributes the following:
    onchange="doSubmit('AENDERUNG_UEBERNEHMEN');"
    And I create a branch to the same page. This works great, I dont lost the changes in the fields and I can use the column links.
    But: If I want to walk through the form with the key "TAB" I have to press the key 2 times to come to the next field.
    How can I submit the page and go to the next field?
    Regars,
    Mark

    Hello Mark,
    how about submitting the page when the column link in the report is clicked. To do this, create a column link with an URL target and specify a target like
    javascript:doSubmit('#ID#_AENDERUNG_UEBERNEHMEN').After that I would create a process, that checks if
    substr(:REQUEST,instr(:REQUEST,'_')+1) (or something like that)
    equals 'AENDERUNG_UEBERNEHMEN'. If so, save the change, set the PK value of your target page to
    substr(:REQUEST,1,instr(:REQUEST,'_'))  (to extract the ID)
    Afterwards, create a branch that jumps to the target page.
    Hope that helps
    Stephan

  • JSON error when trying to redirect to another page in same application

    I'm trying to set up a PL/SQL dynamic action that is triggered by clicking on a button.  The dynamic action sets two values in a table and then I would like to redirect to another page.  Setting the values works fine.  The code is below:
    declare
    l_information varchar2(255) := :P94_FILENAME;
    BEGIN
    commit;
    UPDATE VDI_METADATA
    SET CREATEUSERLISTNAME = l_information,
        CREATEUSERLISTON = sysdate();
    commit;
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:81:&APP_SESSION.::NO:::');
    END;
    The redirect fails with the following eror:
    "Error: parseerror: JSON.parse: unexpected non-whitespace character after JSON data"
    I've tried several approaches, using the suggestions in this forum on how to redirect to a page from within PL/SQL .  None of them result in success.
    Can anyone tell me: What is the system complaining about?  And is there a work-around?
    Thank you.

    John,
    I would recommend adding another true action in your dynamic action that executes javascript.  the logic would just be redirect('f?p=&APP_ID.:81:&APP_SESSION.::NO:::');
    Then remove everything after the commit in your pl/sql action.
    David

  • I'm getting this message: "Firefox prevented this page from automatically redirecting to another page." but unchecking the box for "warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. M'aidez

    Can't load Google Calendar. I'm getting this message: "Firefox prevented this page from automatically redirecting to another page" but unchecking the box for "Warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. It's not reported as a generalised problem in Dashboard. Google Calendar opens and works fine on my 12" PowerBook G4, but this is a recent problem on my G5 13" MacBook Pro. Mayday!
    == URL of affected sites ==
    https://www.google.com/accounts/ServiceLogin?service=cl&passive=1209600&continue=http%3A%2F%2Fwww.google.com%2Fcalendar%2Frender%3Ftab%3Dmc%26pli%3D1&followup=http%3A%2F%2Fwww.google.com%2Fcalendar

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • Activate Tab page and set cursor on field!

    Hi All,
    I have a requirement to mimic SAP standard functionality like whenever a mandatory field is not enetered in a transaction, the control activates particular tab page and set the cursor on mandatory field.
    My requirement is as below.
    There is a main screen 1 with many tab pages.
    But when I click on save button, the control goes to different screen. When a partular field is not enetered, then I should put my control to a particular tab page and cursor on that initial field.
    Please help me to get this done. Al I think is SET SCREEN but not sure how I can eneable the control to a particular tab page and cursor on a field from the different screen.
    Many thanks.
    -Pratyusha
    Edited by: pratyushasdn on Jun 24, 2010 2:07 PM

    Hi chandrasekhar find my code below
    this code i am writing under  at selection-screen.
    *&      Form  Z_VALIDATE_TVKOV
    FORM z_validate_tvkov .
      DATA: i_vtweg LIKE vbak-vtweg.
      IF NOT s_vtweg-low IS INITIAL.
        SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                     WHERE vtweg = s_vtweg-low.
        IF sy-subrc <> 0.
        set cursor FIELD 'S_VTWEG-LOW'.
        MESSAGE e000(z_sd) WITH text-052.
        ENDIF.
       ENDIF.
      IF NOT s_vtweg-high IS INITIAL.
        SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                            WHERE vtweg = s_vtweg-high.
        IF sy-subrc <> 0.
          MESSAGE e000(z_sd) WITH text-052.
        ENDIF.
      ENDIF.
    ENDFORM.                    " Z_VALIDATE_TVKOV

  • Tab closes with no error msg when I click on "Allow". Msg: Firefox prevented this page from automatically redirecting to another page. I had to uncheck the Advance/General/Accessibility option for it to work. Why?

    Msg: Firefox prevented this page from automatically redirecting to another page. When I click on "Allow", The 2nd tab closes with no error msg This was Home Depot redirecting to CitiGroup.
    When I unchecked the Advance/General/Accessibility option to be notified of a "redirect" then things worked.
    Why did clicking on "Allow" not work?
    I posted step by step detail in the Trouble Shooting box below.

    Thank you for your answer. It does stop the redirection notices, but now I have no idea if potentially unsafe sites are redirecting me. I cannot figure out why it has only recently started to happen on my home page though, when nothing has changed on there and I've had it set to show redirections, ever since I set up Firefox.
    I guess I'll just have to make the decision as to whether I want to risk redirections or put up with the semi permanent notice.
    Thanks again mha007

  • It is very annoying when I am at a favourite web site and Firefox will not automatically redirect to another page. It is so continuous and I have to "Allow" through the whole time I am at my favourite web sites

    # Question
    It is very annoying when I am at a favourite web site and Firefox will not automatically redirect to another page. It is so continuous and I have to "Allow" through the whole time I am at my favourite web sites.
    Here is one of those sites:
    http://conservatives4palin.com/

    You can make it automatically redirect by doing this:
    1. Go to: Tools > Options > Advanced > General
    2. Untick the 'Warn me when websites try to redirect or reload the page' option
    3. Click 'OK'
    '''If this was the answer you were looking for, please click 'Solved' -- Thanks.'''

  • AFter the latest download, my e-mail service keeps getting a bar at the top "Firefox prevented this page from automatically redirecting to another page". I have to keep hitting the "Allow" link? How do I get rid of this?

    Ever since the last update, I'm having problem accessing my e-mail account. I keep getting an annoying bar at the top of the screen "Firebox prevented this page from automatically redirecting to another page." I have to keep hitting the allow button, sometimes twice. And when I do get into the accounts the bar jumps in and out every time I open a new e-mail, or delete and old one.
    How do I get rid of this. I've had this account for years, with a very reputable private e-mail provider. This is nuts.

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • I get the message the Firefox prevents going to another page and have to click to allow it. Can this be turned off so I don't have to do this everytime I go to another page?

    The message is this: "Firefox prevented this page from automatically redirecting to another page." I have to give it permission to redirect - a big time waster.

    See:
    *Firefox/Firefox > Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Firefox > Preferences > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

Maybe you are looking for