How do I redirect to a page via a button but also populate a field on page2

I am trying to redirect to a second page via a button but at the same time populate a item on the second page from a function that returns a sequence.
I tried all sort of methods, adding page processing, adding dynamic actions, adding branching and cannot get this to work.
The button must create a new record on the second page, but populate unique key at the same time. Because redirecting does not Submit, adding page processing AFTER submit does not work. I get that, but the following also will not work and I don' know why
Create dummy field on page 1
Create page processing that populates the field via PL/SQL "On Submit"
Create Region button that simply Submits page
Create branch that on submit redirects to second page and moves the value from the dummy field on first page to the field on the seocnd page.
I am new to Application Express and love trying to figure issues out myself but am at a loss with something that should be so simple. Any help would be appreciated.
Stewart

Hi,
As i understand from your requirement,
I am trying to redirect to a second page via a button but at the same time populate a item on the second page from a function that returns a sequence.You want to goto page 2 from page one on click of a button, and when loading the page two you want to populate the item on page two with a sequence number.
if that is the case, try using Button,
Action: Redirect to page in this application
then on page two, create a page process,
Process Point:*On load before header*
Source >> Process >>
begin
select seq_name.nextval into :P2_ITEM from dual;
end;this should do your requirement.
Regards,
Little Foot

Similar Messages

  • How I protect edition in some pages of my PDF, but accept modify one page in my PDF file?

    How I protect edition in some pages of my PDF, but accept modify one page in my PDF file?
    For example...
    I am author of a e-book. But, I want people distribute that my e-book inserting in first page your website of who is distributing.
    Look at how I want stay it...
    "You have downloaded this eBook by"
    Header 1Header 2
    "You have downloaded this eBook by"
    Name of distributor here.
    (only that page can be changed)
    Page 1
    Content my e-book
    Page 2 (BLOCKED FOR CHANGED)
    Content my e-book
    (BLOCKED FOR CHANGED)
    Page 3
    Content my e-book
    (BLOCKED FOR CHANGED)
    Page 4 
    ... ALL THE REST IS BLOCKED FOR EDIT.
    I want that, How can I get it?
    Please, apologize my bad english, I speak portuguse.

    Remember, most people don't have software for editing PDF files at all. They will not want to buy Acrobat just to edit your ebook.
    Otherwise, I think you need to learn about form fields. This allows you to decide where it is to be typed in. You can allow filling and request editing is not allowed.  You need to understand exactly what software can and can't fill in forms, and what can and can't save the result; it changes with versions of Adobe Reader.
    Remember too that some software ignores your security settings anyway.

  • How to turn on an iphone 4s without power button and also got water damage

    how to turn on an iphone 4s without power button and also got water damage?

    Actually the rice is not very effective, you really want to use a desiccant. There are products out there that work really well, the silica gel is a much better alternative to rice. See our blog post about what to do next time this happens:
    The Truth About iPhone Water Damage
    http://iheartrepair.blogspot.com/2013/07/the-truth-about-water-damage.html
    I may receive some form of compensation, financial or otherwise, from my recommendation or link
    <Edited by Host>

  • How to redirect to home page on "Cancel" button click

    Hi,
    I have created a web part for office 365 developed using sandbox solution on Sharepoint foundation 2013.
    On "Cancel" button click i want to redirect user to another page(Home page) using C# only.
    i used some methods like 
    Context.Response.Redirect(SPContext.Current.Web.Url.ToString() + "/Home.aspx");
    but its not working. No methods which includes context or HttpContext is not working.
    Please, tell me how can i redirect user to site home page.

    Hi,
    you can try this
    var button
    = new Button();
    button.Attributes.Add("OnClick"
    , "javascript:{window.location='your
    page url';return
    false;}");
    this.Controls.Add(button);
    Hope it helps!
    Avni Bhatt

  • How can I redirect to a page without having Firefox asking me to Allow it?

    Whenever I am on a website and then there is a redirect to another page (e.g. a link or button etc.) Firefox prevents the AUTOMATIC redirect to a page- and I then have to click the Allow tab. Previously -- up to now-- this never happened. I would like it back to the way it was. Thanks

    Perfect - easy. Thanks very much

  • How to track user visit my page via search engine(google)

    hi there,
    is it possible to track that an user visited my page via search engine ( i.e google) using servlet?
    what will request.getHeader("user-agent"); return if an user comes via search engine. will it return as "google" or just the browser name. is there any other possible way to distinguish that my page visited via google or user visited my page directly. kindly post your view on this. it will be helpful for most of the projects.
    Regards,
    A.

    Check the referrer. This is the URL where the request is coming from.
    String referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling.If the user used Google, this will come from the Google domain.
    Keep in mind that the client has full control over what it sends along the request, so it could also spoof the referrer value. But at least this solution will cover the majority of the users anyway.

  • How can I go to other page when click button??

    When I click button, the process of this button is be executed, then current page will go to other page.
    1.I setup this button's Optional URL Redirect to other page, but process is not be executed.
    2.I create a process and a branch(point: on-summit:after process...), not setup button's Optional URL. at this time, the process is be run, but not go to other page.
    please help me if you know it! Thanks a lot!

    Do you need the process to do something or do you just want to forward to the next page. In this case you just need the branch. In the configuration you can choose the button that forwards to the next page.
    Configuration in the branche:
    Target type: Page in Application
    Page: The Page you want to redirect to.
    On clicked Button: The Button you created on the page which redirects to the next page
    Hope i could help.
    Philipp

  • How can I "expire" a web page (prevent BACK button access)

    How can I "expire" a web page ?
    I know some sites will display the following message if we click on the
    BACK button in your browser.
    Warning: Page has Expired The page you requested was created using
    information you submitted in a form. This page is no longer available. As a
    security precaution, Internet Explorer does not automatically resubmit your
    information for you.
    To resubmit your information and view this Web page, click the Refresh
    button.
    How do I implement this feature??

    U want to disable back button click
    if yes i think
    javascript:window.history.forward(1);

  • How Can I redirect to Error Page

    Hi
    I have below requirement to insert records into a table based on entered search criteria. And same time don't want to insert the records if there are already records for same search criteria. For this we have done below steps
    1) We have a page with two Date fields.
    i) Date From
    ii) Date To
    2) User enters Date From and Date To values and he press "Go" Button.
    We have created a Validation at page level of type "Function Returning Boolean".
    We are passing two searching Date From and Date To values to function and returning TRUE if there are already records.
    Now when condition is TRUE then we want to redirect to a new Page.
    How can we do this?
    Appreciate if somebody can help me.
    Regards
    Kiran Akkiraju

    Scott
    Here is the actual situation.
    Let us assume I want to populate EMP_TMP table from EMP table.
    For this on my first page I have two Fields which are
    1) From Date
    2) To Date
    I am going to give some values to these two fields and I press a button.
    Basically what I have to do is
    INSERT INTO EMP_TMP
    SELECT * FROM EMP
    WHERE TRUNC(HIREDATE) BETWEEN TO_DATE(:P_DATE_FROM, 'DD-MON-YYYY') AND TO_DATE(:P_DATE_TO, 'DD-MON-YYYY')
    But before doing this I want to validate whether for given date range already data exist in EMP_TMP table or not?
    If Already data exist then I have to redirect to User to one page which showing some details.
    IF data is not there then I have to insert these records into EMP_TMP table and show those records into another page.
    I have given this example on EMP table. But I was having similar example here.
    Could you please let me know how can I achieve this.
    Regards
    Kiran Akkiraju

  • How can I redirect a web page.

    I'm not sure if this is really an iWeb issue but I thought I would start here.
    I have a web site (www.replacementchild.com) that is hosted at a third party (not MobileMe). I have used the Blog tool at the hosting site to build a blog for the site (www.blog.replacementchild.com). I have used a snippet to embed the actual blog content into the blog page of my site (www.replacementchild.com/blog.html).
    Everything works fine except that the web crawlers pick up the actual blog url (www.blog.replacementchild.com) which brings up the unformatted page and there is no way to get the user back to the actual web site.
    I think I need some way to redirect the blog url to the actual web site url but can't figure out how to do that. Any thoughts or suggestions would be appreciated.
    Thanks,
    David

    OT:
    I'm making progress but I'm not quite there yet.
    I have actually installed an SQL Database and my own session of WordPress on my hosting service to get better control over the WordPress blog. I put the redirect statement into the footer of my blog template page and it seems to work but only the first time.
    What I mean by that is that since the blog is in an iFrame on my iWeb page, when I try to navigate on the blog page, it seems to do a second redirect and puts a new frame inside the first frame. To see what I mean, go to www.replacementchild.com and select the blog page then select any link on the blog page and you'll see a second frame is drawn.
    The url for the blog itself (which is being redirected is www.replacementchild.com/blog
    I suspect I've done something wrong. Any suggestions?
    Thanks for all your help.
    David
    Message was edited by: David Schwartzer

  • How to HTML a Mobile Me page, via email and send as a newsletter?

    What i would like to do - send HTML newsletters (as a published page on my mobile me site) and let those people view on email. However, my site being private, they cannot actually view the site or the rest of the pages.
    THEREFORE - Can one PW protect the mobile me site first (yes i know it can be done) and then choose one of the pages to send out as a newsletter to select people in HTML? I do not know if this is possible and if so, how. Meaning, the page is viewed upon opening the email, as a normal HTML file without becoming an attachment? Also, since the site is PW protected, the recipient cannot actually follow the page back to the site.
    Any experts seeing this, many thanks in advance if you can find a way to do so, and advise me.

    The page size options are limited, but are in the crop tool. If there are no tags or other markup, you can also print to a new PDF and adjust the size in the printer interface -- sometimes the simplest method, but not normally recommended. The rotation can be done in the document menu and then saved. The rotation that is typically on the toolbar are only for the current view and does not save with the PDF. Many of these you can use a batch process to resolve (in AA8 that is under the Advanced>Document Processing). The better method is to setup your Adobe PDF printer to create the correct page size and orientation in the future. You can setup to typically expand to fit, select a paper size, and have the settings set to auto-rotate. The later is based on the text that is found on the page. The margin elimination is also part of the crop tool. Hopefully this at least gives you some things to look at. Unfortunately, the tools get moved around with every version, so you may have to search for the tools.

  • How do I parse a web page via a URL in the clipboard

    Hi.
    I would like to read the html source of a web page into a string variable. The contents of the clipboard contains the URL.
    How do I do this ?
    Regards,
    Harry W.
    PowerMac G5 Dual 2.5GHz   Mac OS X (10.4.3)  

    What I have done is write an Applescript that parses a URL copied from a web site (http://www.ebroadcast.com.au/TV/static/PerthNight.html?) read the web page using CURL and use the EyeTV API to schedule a recording.
    The applescript is as follows;
    property |version| : 1.0
    property author : "HarPat Software"
    property |date| : date "Saturday, 18 February 2006 12:00:00 AM"
    property license : "freeware, open-source"
    version 1.0, February, 18, 2006
    - Initial version.
    set theURL to contents of (get the clipboard) as text
    if theURL contains "http://www.ebroadcast.com.au/cgi-bin/TV/detail?" then
    set thePage to do shell script "curl " & quoted form of theURL
    set theBDateStr to "Broadcast Date: "
    set theChannelStr to "&chan="
    set theDescriptionStr to "&descrip="
    set theBTimeStr to the offset of "Broadcast Time: " in thePage
    set theDurationStr to the offset of "Timeslot Duration: " in thePage
    set theBDateOff to the offset of theBDateStr in thePage
    copy (characters (theBDateOff + (length of theBDateStr)) thru ((the offset of "Channel: " in thePage) - 9) of thePage) as string to theBroadcastDate
    set theChannelOff to the offset of theChannelStr in theURL
    copy (characters (theChannelOff + 6) thru ((the offset of "&state=" in theURL) - 1) of theURL) as string to theChannel
    set theDescriptOff to the offset of theDescriptionStr in theURL
    copy (characters (theDescriptOff + 9) thru ((the offset of "&fta=" in theURL) - 1) of theURL) as string to theTitle
    set theBTimeOff to the offset of theBTimeStr in thePage
    copy (characters (theBTimeOff + (length of theBTimeStr) + 23) thru ((the offset of "Classifications: " in thePage) - 10) of thePage) as string to theBroadcastTime
    set theDurationOff to the offset of theDurationStr in thePage
    copy (characters (theDurationOff + (length of theDurationStr) + 26) thru ((the offset of "<!--<br>" in thePage) - 11) of thePage) as string to theDuration
    set Durationsecs to (theDuration as integer) * 60
    set thetheBroadcastDateTime to theBroadcastDate & " " & theBroadcastTime
    set aChannel to 0
    if theChannel = "2" then
    set aChannel to 1
    end if
    if theChannel = "7" then
    set aChannel to 2
    end if
    if theChannel = "9" then
    set aChannel to 3
    end if
    if theChannel = "10" then
    set aChannel to 4
    end if
    if theChannel = "SBS" then
    set aChannel to 5
    end if
    if theChannel = "31" then
    set aChannel to 6
    end if
    tell application "EyeTV"
    make new program with properties {start time:date thetheBroadcastDateTime, duration:Durationsecs, title:theTitle, channel number:aChannel}
    end tell
    end if
    I'm not very good at scripting yet so please don't laugh at my code.
    Regards,
    Harry Werkman

  • How do I export pdf from pages via commandline

    I have a pages document that I use as a documentation for a library that I've written.  When I release the library I hav been manually exporting the document to PDF, but I'm trying to automate the whole process.
    Is there a way to get Pages to convert a .pages package to a .pdf file via bash?

    Try Automator or an AppleScript.
    I am not sure if Yvan our resident AppleScript expert is still monitoring these forums. Apple has offended him to the point he has gone on strike.
    Peter

  • I cannot get into router page via server? But can on any other device?

    Comcast Business Cisco 3939B wifi router.
    I can log into the router page just fine on ANY other workstation or laptop direct connected to any of the 4 ports of the router using 10.1.10.1.  I can access via Android phone browser via wifi also.
    It just asks for username and password.  No problem.
    BUT.
    When I try to do this SAME thing from the Windows Server 2012 R2 Essentials connected via Ethernet port using Windows Explorer, it gets to the username and password page and after that, just sits there and says "logging in...".
    Does Windows Server 2012 R2 Essentials by default prevent this?  or Internet Explorer do this?  Do I need to set something on the server?
    Not sure if the subnet mask 255.255.255.0 has anything to do with it?
    thank you for any help.
    This topic first appeared in the Spiceworks Community

    Try these;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If that does not help,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode start Firefox in Safe Mode]'''''.
    Let us know how you do.

  • Query on  redirecting to a page when login button is clicked

    Hi,
    I want to redirect to/pop up an existing page with page name 9 when the login button in the log in page is
    clicked.Is that possible?.Now it is redirecting to page 1.
    Edited by: tj2010 on Sep 8, 2009 2:10 AM

    On login page (probably Pane 101) you have Login proces. Edit it to:
    wwwxxxxxxxx.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':'||nvl(:P101_PAGE_ID,'9')
    And probably you have to change Logout link in your Authentication Schemes:
    wwwxxxxxxxx.logout?p_this_flow=&APP_ID.&amp;p_next_flow_page_sess=&APP_ID.:9
    Edited by: AndyPol on 2009-09-08 11:17

Maybe you are looking for