Redirect to a page and submit this page?

I have a page which, once submitted, calls a few procedures database and displays the details of items in stock. Next to each item is a link to Transact the point that goes to another page. Once the issue has been addressed on this page, I would like to branch back to the original page and show put updated figures.
However, the question is, we call the code after "Send" to start by filling temporary tables. So when the branches back page, tables are not met and this is why we do not see the data it takes.

Is it possible in a branch to say "creates a branch to this page and submit it?

Thank you

Hello

You can still use the javascript method to call the function doSubmit, but you also need to update the value of P1_SUBMIT.

Assuming that P1_SUBMIT is an item hidden on page 1 and has a value of 1 to validate or 0 for no present, then:

<script type="text/javascript">
$x('P1_SUBMIT').value = 0;
doSubmit('P1_SUBMIT_BUTTON');
</script>

This should be an area in itself and should be subject to P1_SUBMIT being equal to 1

Your button on page 2 must then on P1_SUBMIT 1 so that, when the button is clicked, the P1_SUBMIT value is set to 1, the javascript region is therefore included in the page, so the javascript code is executed, P1_SUBMIT is set back to 0 and the page is sent. When the page reloads after that, as P1_SUBMIT is 0, the region of javascript is not included, so that the page is not automatically subject again.

Andy

Tags: Database

Similar Questions

  • Audit (app.alert) for read-only and submit or nevermind

    Hi script ninjas. I have a MouseUp action a button titled 'Finalize & E-mail '. Based on input from the end user, it is necessary to add an alert message to reduce a large volume of phone calls 'I can't add more information in the form."

    My intention was to have a button that would make the 'read only' form and then submit by attaching in the form of an email. But it seems now that I need an app.alert to go with it. So, I fought on where to add the "else" statement in the JS below. Without this statement else what I get is - an attachment with a read-only form or an email that is not. What I want is - if the user chooses "no," the user back to the form to continue adding information. I'm sure it's an easy fix, but I went down too bad rabbit hole today. Thank you in advance.

    var r = app.alert ("are you sure you want to develop and submit this document? This action can not Ωtre annulΘe. ", 2, 2) ;

    If (r == 4) {/ / 4 is Yes, 3 is not}

    for (var i = 0; i < this.numFields; i ++) {}

    fname = this.getNthFieldName (i) var;

    this.getField (fname) .readonly = true; makes all readonly fields

    }

    }

    It's the return of form e-mail. It is hardcoded

    to make the form comes back to the same address.

    Change of address on your form to match the code below

    var cToAddr = " " [email protected] "" "

    var cCCAddr = this.getField("PROJECT_APPLICANT_EMAIL").value + ";" + this.getField("LEAD_AGENCY_EMAIL").value;

    var mySubject = this.getField ("Agency") .value +' | "" + this.getField("Today").value + "| "" + this.getField("Counter").value + "| "+ this.getField ("Project Title") .value;

    Set the body of the text of the e-mail message

    var cbody = 'Thank you for your Document.\n\n' + 'Save the attachment of the completed form for your records\n\n' + 'your document is now in good hands. "

    Send the PDF as an attachment to an e-mail

    this.mailDoc ({bUI: true, cTo: cToAddr, cCc: cCCAddr, bassujetti: mySubject, CMSG: cbody});

    All you need to do is to put all the code in the block that starts with the if, like this condition:

    If (r == 4) {}

    put the code to set read-only fields and submit the file here

    }

  • I have a Mac and I want to remove the feature "Firefox prevented this site automatically redirecting to another page. Show you how do to Windows, but I have not found how to for Mac

    I have a Mac and I want to remove the feature "Firefox prevented this site automatically redirecting to another page. Show you how do to Windows, but I have not found how to for Mac

    This has happened

    Each time Firefox opened

    == I try to go to page to a new page

    Thanks Cor - el.

  • Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value

    Hello

    a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:

    Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.

    I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)

    Workspace: tests

    USER: supporter

    PWD: supporter1234

    Any help would be much appreciated.

    Kind regards

    Pavel

    Pavel

    If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.

    This will jump to the top of the page of the modal dialog box

    : P1_URL: = apex_util.prepare_url)

    ' f ? p ='|| : APP_ID - Application id

    |': 2' - Page id

    ||': ' || : APP_SESSION - Session id

    ||':'                      -- Request

    ||':NO'                    -- Debug

    : ': ' - Clear Cache

    : ': ' - Settings

    ||' P2_ITEMVAL'

    : ': ' - Parameter values

    || (: P1_ITEMVAL);

    then in the action of javascript

    Window.Location.Replace ($v ('P1_URL'));

    Hope this is of some use

    Concerning

    Kelvin

  • Make the button submit, and then redirect to another page

    Hello!
    I have a button of the region, when you press on "should" launch the Multi_row_update, then redirect to another page. I can't make it work well.

    I have the button BUTTON_1, I have the "after-submit' process that performs the MRU after this button is pressed.» I then created the conditional branch that is supposed to redirect. But it does not work. The page is not redirected. I tried to change the button to a redirect button, but then sending does not. How can I do both?

    Thank you!
    Jodie

    What is the sequence number of the one who is unconditional?
    I think that your unconditional branch on the same page may be taking over your conditional branch on page 55.

    -Chris

  • Firefox prevented this page from auto redirection to another page

    Firefox prevented this page from auto redirection to another page
    I get this message every time I go to the new search page. I'm if tired after you press the F - ING allow it's not funny. Cannot Fire fox remember the pages of dam that go? Every time freaking that I go to a new page that the accessories and I have to click allow. I would like to get rid of this for good so if you can help me it's cool, if not then bye. I'll explore for browser. I can't take more. In addition, when I read that page moves upward again and I have to click on authorize again.

    Try this: Firefox button > Options > Options (or tools > Options) > advanced > general, uncheck 'warn me when Web sites try to redirect or reload the page'

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    You use obsolete, and is no longer supported version of Firefox (version 3.5.5) which is likely to have many problems of security and stability. Upgrade to the current version.

    Also see-> https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • I'm constantly projected this message: "Firefox prevented this page automatically redirecting to another page." Why does this happen?

    I'm constantly projected this message: "Firefox prevented this page automatically redirecting to another page." The result is that I'm often looking to a white screen with an option to click on "allow". But sometimes the message arrives and I'm on the page I want to be on anyway. I do not understand this and do not know how to change this setting, if indeed I configure Firefox this way. Help?

    There is a setting that can cause this message in the Options > Advanced Options > general

    "Warn me when websites try to redirect or reload the page.

    http://support.Mozilla.com/en-us/KB/options%20Window%20-%20Advanced%20panel

  • I can't open my email on Firefox, it works on explore. When you go to the page I get this message "the requested URL /hunter/ajax_login/redirect.php was not found on this server."

    Question
    I can't open my email on Firefox, it works on explore. When you go to the page I get this e message "the requested URL /hunter/ajax_login/redirect.php is not found on this server."

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • How to get around the "Firefox prevented this page auto redirection to another page?

    whenever I click on a website to get more information, I have to
    Let him. The bar to say the-Firefox prevented this page from auto
    redirecting to another page.
    If I click on it I want to go out there and not having to rely on a permit
    button. Help!

    Tools > Options > advanced > General > let me Warn course when the site try to redirect or reload the page is unchecked.

  • How can I make Foxfire quit gives me the message Firefox prevented this page from automatically redirecting to another page?

    When I'm on some sites Firefox gives me the message Firefox prevented this page from automatically redirecting to another page? and then I have to click on allow. This happens on every page on some sites. How can I make this stop all together?

    Tools-> options-> advanced-> general, then uncheck the warn me when websites try to redirect or reload the page

  • State of session/Dom to the point where to redirect to the page of this application

    Hello

    I joined 3 OpenLayers in page 5 of the APEX. When I select an object on the map I want to show a modal page with related data. For this, I do the following:

    1. I put the value of an element in the DOM JavaScript: $s ('P1_SELECTED_ID', $v ('P1_ID'));
    2. I update the value of the session of the item likechubby Kiran described here: assigning the value dot PAGE APEX
    3. I click on a button to redirect to modal page where I put the value: P2_EMPNO with the value of & P1_ID.
    4. The modal page opens, but no value will be defined. (the same when I set the page as usual mode)

    I tested it also on apex.oracle.com - but with the same result:

    Workspace: lets

    User: guest

    Pass: Lets1234

    Application: SessionUpdate

    Link: https://apex.oracle.com/pls/apex/f?p=11045

    I also read this post: APEX point: elements of the Page to send

    I checked the State of the DOM element - with Firebug and session state with the tools of the developer toolbar everything works fine...

    Can someone help with this problem?

    Kind regards

    Christian

    The following solution works for me: State of the side customer Pass to the modal dialog box

  • Redirect to another page and hide the buttons

    Hello

    It is possibel to hide the buttons if I redirect on one page?

    Example:

    To Page 2, there is the 'Page 3' button. If someone clicks on the button will open the page 3.

    In Page 3, there are three buttons 'A', 'B' and 'C '.

    If I start on page 2 and change the site to click on the button 'Page 3' keys 'A' and 'B' will be hiding on page 3.

    If I start to on page 2 and the change of the site using the menu navigation on page three, all buttons will show up on this site.

    Workspace: TEST_OA5
    Username: [email protected]

    password: Hund456 (<-new password)

    Can someone help me?

    THX

    René

    RWErene81 wrote:

    It is possibel to hide the buttons if I redirect on one page?

    Example:

    To Page 2, there is the 'Page 3' button. If someone clicks on the button will open the page 3.

    In Page 3, there are three buttons 'A', 'B' and 'C '.

    If I start on page 2 and change the site to click on the button 'Page 3' keys 'A' and 'B' will be hiding on page 3.

    If I start on page 2 and change the site using the menu navigation on page three, all buttons will be displayed on this site.

    Add a value ask as PAGE_2_BUTTON for the button on page 2, and then make the buttons A and B on page 3, conditionally to aid a ask! = Expression 1 condition, with term 1 on PAGE_2_BUTTON.

  • I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    Can do in muse and I tried to use dreamweaver like the code below:

    <! doctype html >

    < html >

    < head >

    < / head >

    < body >

    < style >

    {#video_background}

    position: fixed;

    Bottom: 0px;

    right: 0px;

    min-width: 100%;

    min-height: 100%;

    Width: auto;

    height: auto;

    z index:-1000;

    overflow: hidden;

    }

    < / style >

    < video id = "video_background" preload = "auto" autoplay no Cup >

    < src = "source opening.webm" type = "video/webm" > "

    < src = "source opening.mp4" type = "video/mp4" > "

    This browser does not support video

    < / video >

    < script type = "text/javascript" >

    {document.getElementById('video_background').addEventListener ('ended', function ()}

    window.location.href = ' http://www.xxxx.com';

    (}, false);

    < /script >

    < / body >

    < / html >

    adeletsang wrote:

    Thanks for your reply.

    I just need to click on "object > insert html ' muse and paste the code there?

    My video ID is video_background which is defined by the widget by default, I should change the code below:

    The site I posted has no video in there and I don't have the widget that Peter sugested however, you can replace the startup code Nacy O made (the black with bit blob going around it) and it should work... understand that a ve\ideo will have to be downloaded by your browser clients before they can see it, so it's another delay for them.

    The code you posted is the code of downtime and that seeks a DIV not called "intro" so no do not change his name...

    A mandatory opening text

    After 5 seconds, this block will disappear.

    Everything between the two div tags is startup code and replace you it with you video and then use the muse "object > insert html" tool to place on your page.

    The demo includes three bits;

    • the body or the div tag is the code shown above and goes into the tool "insert html".
    • a header code that defines styles i.e. the yellow background and text... cela goes in your location of metadata page

    • The final code is the timeout in jQuery you had but do not change the name to the background image unless you also change the name of your div to match... Nacy O put it in its footer code that is correct for DW, but Muse has no footer as such area so I used a master metadata slot to the same effect. The important point is that it descends UNDERNEATH other codes.

    Have a play with it and see how you go...

  • 2 functions of a button. Make pages 2 &amp; 3Visible and submit via e-mail.

    Hi, I'm really that okay, but I want the form to do the other visbile 2 pages and submit by e-mail. I have this below the button:

    Page2.presence

    = 'visible ';

    page3.presence

    = 'visible';

    var

    vEmail = " ""[email protected]'; '.

    var

    vSubject = "RISS";

    var

    vBody = ' Please find the attached Request for Information Services Support form. "

    event.target.submitForm ({cURL

    : ' mailto: ' + vEmail + « ? ({' subject = ' + vSubject + '& body =' + vBody cSubmitAs : 'PDF' cCharset : "utf - 8"});

    all together, it will not open the other two pages, but will present by e-mail... If I take things put off holidays there and just:

    Page2.presence

    = 'visible ';

    page3.presence

    = 'visible';

    When you click on it it populats the page. How can I get these two things work together. first to show pages, then submit by e-mail. Please help her long day of bee na. :-)

    Hello

    Try to put a little distance between the two sets.

    Please the script of presence to the mouseUp event and leave only the e-mail script in the click event.

    Hope that helps,

    Niall

  • How can I activate Firefox prevented this page from automatically redirecting to another page? This unfortunate thing has now completely blocked me connect to a Web site.

    How can I disable this message blocking? "firefox prevented this page automatically redirecting to another page.
    It used to be boring, but now he has completely blocked me to connect to a Web site.

    Tools > options > advanced > general...
    then uncheck the...
    I myself have this option because I stand bad pages themselves help to redirect to who knows what. Why can't you just go sites where I click?

Maybe you are looking for

  • Sierra, stuck in the 'Downloaded' status

    The Sierra dmg has failed with an error "invalid checksum". I would like to re - download the file to see if it has been altered during the download - but the app store has the gray Sierra drop-down selection in a status of "downloaded". How can I re

  • Why doesn't 'request site Office' work?

    Galaxy S3 with CSpire. requesting office site redirects me to site attach data from CSpire. I wish that it worked. I have to use another browser to view a desktop site.

  • Can I allow someone else access to my favorites?

    So far, I was only a laptop Vista Home Premium SP2 user, with 1 user (admin, password) account. I have now created a 2nd account, not administrator user and password-protected, for husband Dave. Both accounts have (ver.12) Firefox as default browser.

  • Types of Apple ID and their uses as pseudonyms AIM

    Hello Apple used to have two methods of creating an Apple ID. One was to register and email outside and connect with that. The other was to create an ID @mac.com This could be a trial account in the beginning or paid to the account.  Paid accounts ga

  • Graphic problems on Satellite A660

    Hi guys,. recently, I have had video and audio problems (had the A660 8 months now with no problems) and I'm desperate for help. Problem is that it... Whenever I m playing a video file downloaded on my hard drive of utorrent or elsewhere, also while