How to set point values when redirecting to the same page.

I just create a button to redirect I want to redirect to the same page and place 2 elements on the page to the same value they had before the redirection.
But I can not write:
Place these items: P1_Permit_Number, P1_Fishing_Year
With these values: & P1_Permit_Number, & P1_Fishing_Year.

Because there are no values in session state, because a shipment has not been done.

So, how can I do this?
I know how to get the values stored in the elements, for example, $v ('P1_PERMIT_NUMBER')
but where should I put this command? It is not allowed under the "with these values.
And I don't really want to make a button "submit" and create a process that says:
P1_PERMIT_NUMBER: = $v ('P1_PERMIT_NUMBER'), because that would complicate the page too - I already have other branches and the process on the pages which conditions have to be modified so that they do not work in this scenario.

Thank you.

Hello

The syntax seems correct to me. Your summers of uppercase element names?

Try:

alert("Here");
var permitNumber = document.getElementById('P1_Permit_Number').value;
alert(permitNumber);
var fishingYear = document.getElementById('P1_Fishing_Year').value;
alert(fishingYear);
var url = 'f?p=&APP_ID.:1:&APP_SESSION.:Vessel_Display:::P1_Permit_Number,P1_Fishing_Year:' + permitNumber + ',' + fishingYear;
alert(url):
window.location.href = url;

All alerts MUST display expected values. Doesn't it?

Andy

Tags: Database

Similar Questions

  • Redirect to the same page with the values of the variables

    Hello

    I develop a form to report data of the certain date range provided by the user.

    The problem is that I have to redirect the page back to the original page with the error message "not found in the date range" If the provided date range contains all the data in the database. I am able to redirect the page to the original page for help:

    < cfif queryname. RecordCount EQ 0 >

    < cfset action 'error' = >

    < Cflocation >

    < / cfif >

    And I use the < cfparam > for the creation of an action to navigate in the code, variable

    < name cfparam = "action" default = "" >

    [Use the < cfparam > above, tag at the top of the code and using action EQ 'report' and ' ' for navigation in the code]

    But, when I redirect to the same page, with the variable value measures of error and using cflocation he forget all varable values in the new page [way], then how can I pass a variable value measures on the same page and redirect it to the same page on meeting certain criteria.

    If this isn't clear, let me know.

    Help, please

    Vijayvijay77.

    vijayvijay77 wrote:


    ...


    And I use

    a kind of cfif to navigate inside the code. I'm doing something wrong here.

    You say that you guessed it at work.  But you have a dangerous code here (if you have not changed).

    The line will generate variables URLS when ColdFusion processes the page.cfm file once requested by the browser.  For example url.set and url.flag.

    Tags are NOT specifying the scope of variables, so they will default to the scope of "variables".  Who are the local variables of the demand for treatment.  For example variables.set and variables.flag.

    URL.set and VARIABLES.set ARE NOT the same variables.  And this confusion can cause some VERY difficult to diagnose the problems of code.

  • How can I combine two PDF files on the same page?

    How can I combine two PDF files on the same page? Please share any ideas you may have. Thank you.

    The term for what you want to do is called "page imposition.  There are third party tools that can do it for you like this: quite large: home page

  • How to set a user account to have the same settings as the administrator account

    How to configure a user account to have the same settings as the administrator account. using windows xp pro with service pack 3

    Set the "parameters of same.

    If you want that the user has administrator privileges, then all you need to do is to add the user to the group "Administrators".  To do this, right-click on 'My computer', select 'Manage' and open the "local users and groups" section.  Click on 'Groups', double click on "Administrators" and add the user to the administrator group.

    If you set 'settings' and things like wallpaper and other preferences, there isn't a way to do that easily other than to simply set these parameters.

    Hope this helps,
    JW

  • Branch to redirect to the same page as edit

    Hello
    How can I stay on the same page after insert or update the folder but in edit mode.
    I use a branch, but that loses the values.


    Kind regards
    Orlando Cruz

    Hello:

    Change the target of the branch defined in the page containing your form points to itself.
    Remove the 'reset the page' page process defined on the form page.

    CITY

  • 4.3 pages: how to print files of different text on the same page at the same time?

    This concerns 4.3 Pages, I prefer.

    I have written two different books, both with notes - one with a lot of notes.

    I would like to print them both, at the same time, on a single page legal-size, 8 x 14. I can get.

    I did this time in divvying up toward the top of the page itself and by running the paper into the printer twice - once for the top the half and, again, once for the lower half. It worked very well... but my printer is becoming tired! (former HP).

    Recently, I tried to print the most complex book on top, with all the heavy notes, in a 'box' above. I managed to get this set only to discover that you are unable to print notes in a text box! Curses.

    Unfortunately, through the raggedy of the time evolution, these books are more than a length. However, I know that I can squeeze and tweezers to them by giving them different sizes and depths of the page. Certainly, foreign and unknown.

    Why the question is: is it possible to print simultaneously two different files (texts not only) on the same sheet of paper? Each of these texts has notes.

    Hi aws.

    4.3 pages. It will work for you?

    A single page with two columns

    Insert a column break between the two versions. Notes appear on the same page.

    Kind regards

    Ian.

  • Two redirects to the same page?

    DW CS3 - ASP

    Through a former (but excellent) training DVD to create registration forms Insert/Update/Delete using DW & ASP.

    Two forms are created on the same page - a record of update and delete record.  Update works, but delete creates an error:

    Microsoft VBScript error "800 a 0411" compilation

    Name redefined

    /mysitename/myFolder/admin_edit.asp line 95

    Dim MM_editRedirectUrl

    This error is apparently due to the different redirect for each form URL:

    ' add the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "admin_edit.asp".
    If (Request.QueryString <>"") then
    If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    On the other
    MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
    End If
    End If
    Response.Redirect (MM_editRedirectUrl)
    End If
    End If
    % >

    ' add the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "admin_home.asp".
    If (Request.QueryString <>"") then
    If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    On the other
    MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
    End If
    End If
    Response.Redirect (MM_editRedirectUrl)
    End If

    End If
    % >

    I read that rename the second MM_editRedirectUrl Sun of Sun MM_editRedirectUrl_2 will make things work properly and he DID!  However, does make for an unstable environment; and if yes, what is the best approach to resolve this?

    OK, that makes sense. The problem stands and the original solution. Loading edit/detail page he sees scripts and variables of these two behaviors, and that the same variable name is used in both cases. So to change the names of variables in one or the other behaviors will work and will not cause any instability.

  • How to set programmatically different view settings in the same workflow

    Hi all

    I have a business view that calls another view activity B with a link. In this connection, the action takes place to a method (I use the class JSFUtils: http://jdeveloper-adf.googlecode.com/svn/trunk/TGPrototype2/ViewController/src/com/tgslc/defaultManagement/utils/JSFUtils.java):

    public String goToB() {}

    String paramToPass = "someParameterTakenInSomeWay";

    JSFUtils.setExpressionValue("#{pathToViewB_pageBPageDef.paramName}",paramToPass);

    Return "openActivityB";
    }

    where openActivityB is the case of control flow to call B.

    In the file for pageDef B, I put a parameter "paramName" worthless:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < pageDefinition xmlns = "http://xmlns.oracle.com/adfm/uimodel."
    version = "11.1.1.59.23" id = "pageBPageDef" >
    < Parameters >
    < parameter id = "paramName".
    value = "" / >
    < / Parameter >
    < executables / >
    < bindings / >
    < / pageDefinition >

    But at the time of operation, I have an oracle.jbo.expr.JIEvalException:

    Houston-25077: paramName not found in the object name specified: pathToViewB_pageBPageDef.

    The question is: How can I set the parameter view activity programmatically?

    Note that I use this method to set the parameter because in the real application, I have many 'view activity' that will call B, but all these should adjust this setting.

    I use JDeveloper 11.1.1.4.

    Thanks in advance,
    Baudel

    Hello

    This is because PageDef B represents a link container that is not active at the same time you try to call it. The link container becomes available when you navigate to the page, but not before. Instead:

    1. define a bean managed pageFlowScope and expose a Set/getter accessor method to contain the value to pass
    2. the bean managed pageFlowScope property reference of NDValue attributebinding using EL
    3 set the managed bean before you navigate to view B

    Frank

  • How to set loan and buy permissions on the same book - Adobe Content Server

    Hello

    We have a scenario where we will give the options in our bookstore to buy or borrow the book,

    but in our initial search, what we get is that we can set permissions to distribution

    buy or ready... technically we can set the permissions of distribution like buy and when demand

    of the library is ready, we can set the time-out period expires... BUT in this case the

    book will be not classified in the section of the loan of the Adobe Digital Editions.

    So, how can we define the permission to buy and loan on the same book?

    Kind regards

    Use the admin REST API (ManageDistributionRights), or leave the administration console for you to use.  In the administration console, there is a button right next to the title rights of Distribution.

  • How to set levels of several images at the same time?

    CS6 user, I scanned recently a few pages of an old black-and-white, Comics who, thanks to the passage of time, are now more black and beige.

    I know how to adjust the levels using the eyedropper tool, but is there a way to apply the same effect to multiple pictures in one go (i.e. adjust the levels of an image, and then apply the same effect to others as a batch of files), rather than by pressing ctrl + alt + l and save each image individually?

    Thank you

    Save the changes in the form of Action and run as a batch process using Image Processor (under the file menu)

  • How to print two top images down on the same page?

    When I print two different images on the same sheet of contact, I prefer that they print top to display rather than side by side.  Help will be very appreciated.  Thank you.

    In the print dialog box, choose "Picture Package" as the "printing Type" (#4).

    Ken

  • How to set up primary Oracle &amp; Eve on the same host on windows 2003

    Hello

    Please could someone give the steps to configure oracle 10g primary and standby database on the same host with windows server 2003.

    Thanks in advance...

    See you soon.
    Anil

    other general procedures LOCK_NAME_SPACE will be necessary.
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams096.htm#REFRN10083]

  • Redirect to the same page after submitting a form

    I use a landing page form Eloqua to drive online capture at all our shows. Right now, I have been creating pages for individual destination and forms for each of them... which isn't an ideal situation. I also started using query parameters, so I have a default form that will capture a unique campaign for each show ID. It is, I can't figure out how to redirect the submission form!

    Example:

    testing.Eloqua.com/tradeshowleadform?source=CAMPAIGNID123

    On form submission, the source meets the fact that he was from CAMPAIGNID123 and puts it in the system. But I can't get back to this exact URL for redirection! I get to go back to ' testing.eloqua.com/tradeshowleadform"...but I need to the query parameter in order to capture the right campaign."

    Anyone has an idea on how to do it? My one idea was to enter the FULL URL in a field called (returnURL), but don't know how to do this since the request parameters are only for everything after the question mark.

    Any help would be greatly appreciated.

    Thank you!

    -Jon

    Try campaignid1.  If this does not work, you can find the HTML for the merger of field by inserting it into an email or landing page and showing the source code.

  • How to create different attributes of link on the same page?

    I am using the CSS links for my menu. The links are white, big and fat, but I want an e-mail link to be a different color, the police and the smallest in size. How can I do this?

    Clark9 wrote:

    In the file.css: I typed: #email a {color: #000000}

    It did not work. What I am doing wrong?

    #email one is a descendant selector, which means a link that is a descendant of an element with the email ID. However, your ID is in the opening tag of the link, the link is not a descendant of email. The following should work:

    #email { color: #000000; }
    

    If it doesn't, it changes to this:

    a#email { color: #000000; }
    

    That means "a link with the email ID.

  • How can I open now two copies of the same page

    As a shortcut to business I cut and paste a copy of one web page to another copy. The new feature does not allow two copies of the same page. Is there a way to force the two copies?

    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in a new tab using Alt + Enter on the highlighted entry.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.

Maybe you are looking for

  • iPod touch will not connect using bluetooth

    New iPod Touch model MKJ02LL/A does not connect using Bluetooth Try to connect again redfish Bluetooth music receiver model RF-BTR315 and Radio in Toyota Camry Sometimes (after restarting the iPod of parts and the music receiver) the music receiver w

  • size of the binary value of fixing

    Hello Simple question but having a few problems to understand. I have a 13-bit binary value. I want to filter the last piece. How this can be done? Thank you

  • Problem with installation of 12 c Cloud Control

    -Microsoft windows 64-bit 8.1-Oracle database 64-bit 12 cHi, I need Cloud Control for my review "performance and Tuning. Is... i have a problem can not install it.Everything was perfect until the-> 'contact information database connection"where I nee

  • We can animate the opacity in 3D Pdf

    Takes PDF 3D animating the opacity? If the animation of the opacity is not supported, is that we can animate to turn on and off an object within a single animation?Or not using the right way to do it?Thank you for your help

  • How to make Creative Suite of hard drive again programs SSD

    Hey guys!I just bought an SSD and I want all of my adobe programs to make sure that (Suite designs & Web programming CS6).I have the serial number, but I don't have the installation files? What should I do?