Select value then navigate to another page

All,
I am doing something which sounded simple but doesnt seem work for me. Ive a select List item and when a value is selected on change eg EMP_ID value i need to pass that selected value to another/navigate to another page and pass that values to that page item eg P2_EMP_ID.
i tried below DA but its always showing value=undefined  ?
$('#P1_NAGIVATEPAGE').change(function() {
alert('val = ' + $("#P1_XXX option:selected").val() );
        var ac = $('#P1_XXX').val();
        alert(ac);
        if (ac == 'CAMPING') {
            window.location = 'f?p=&APP_ID.:2:&SESSION.::&DEBUG.:P2_XXX:&P1_XXX:';   etc,
how can i solve in apex 4.2?
thanks.

Hi,
You are using &P1_XXX in your code. This is the value of the item from the moment the page loaded. This means it is not changing on the change of the item value. Your code should be something like this:
window.location = 'f?p=&APP_ID.:2:&SESSION.::&DEBUG.:P2_XXX:'+ac;
Regards,
Kees Vlek
Company: http://www.orcado.nl
Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
Twitter: http://www.twitter.com/skier66
+If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.+

Similar Messages

  • Cf10 how do I pass the selected value in cfselect to another .cfm page

    I am new with CF. I am using CF 10 on WIN XP. I am pulling a distinct list of data and want the user to select one to open a new page (detail.cfm) and pass that value to the next page to be used for other queries.
    can it be done?
    Here is my code for cfselect .
    What am I missing
    <cfform name = "Form" action="detail.cfm"
             <cfselect name="trip"
                        query="gettri"
                     value="district_name"
                     required="yes"
                     multiple="yes"
                    size="1">
        </cfselect>
    <br> <input type="Submit" value="Submit">
    </cfform>
    Thank you for your time
    Rob

    I missed it when I typed it in my original question
    The > bracket is in my code.
    I justed checked.
    It should read  ~ "detail.cfm">
    The list works when I excute the page.
    How do I pass the value after I have selected it on the page?
    Thank you

  • Value Interaction Navigate to another App

    I currently use Presentation Services to write reports against the Database for our Incident Tracking Software. I have built a Form in BIP to mimic the look and feel of an Incident Ticket and using Value Interaction Navigate to this BIP Form is working well (I pass through the Incident Number). Would like to bypass this and navigate directly to the Incident Tracking App and actually expose the Incident Ticket (again clicking on the Ticket Number in my Presentation Request and passing that number through to my Tracking Software). I can construct the URL to a given Incident in my Incident Tracking App directly into my browser and I can get there. Has anyone had any luck in using Value Interaction Navigate in navigating to another App other then a Presentation Request or BIP...Thanks

    Yeah, using goURL you can pass some custom parameters. I used to configure such functionality for linking to SiebelCRM.
    Check this doc http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31766.pdf (Web Services) around page 208
    Edited by: wildmight on May 27, 2009 1:43 PM

  • Use Select Value in JSp on same Page

    Sir,
    In my Jsp page there is one dropdown,sir i want to get that select value in same page so that i can display data on same page below the dropdown based on the <select> value.
    Is it possible to do this things.
    Plz reply Soon.
    Thanks,
    Regards,
    Ashish

    I ideally start by reducing the 2-page functionality - of form page and action page - to just one. It goes like this:
    <cfset isValidationPassed = false>
    <cfif isDefined("form.someVar")>
    <!--- Do validation. Validated form implies isValidationPassed is true --->
    </cfif>
    <cfif isValidationPassed>
    <!--- Do action page stuff --->
    <cfelseif NOT isDefined("form.someVar") OR NOT isValidationPassed>
    <!--- Display the form. --->
    <!--- If form had been submitted, inform user which validation failed, and what to correct. Display the form. --->
    <cfoutput><form method="post" action="#CGI.SCRIPT_NAME#"></cfoutput>
    </form>
    </cfif>
    The idea is then to pile on the complexity, layer by layer.

  • Inserting a db row from a form with a value passed in from another page

    We have a report (P1) on a table (T1). P1 has a link column (C), and C is the PK on T1. Clicking on a link (i.e., a row) in report P1, takes us to form (P2). P2 is used to allow the user to insert a new row into T1, with the constraint that one of the columns (X) in T1 must have the same value as X had in the linked row on P1. Also, X is a NOT NULL attribute.
    What we are doing is:
    First, passing C to P2 by setting the link name=P2_X_C and the link value=#C#
    Second, in P2, we are setting form element P2_C via a SQL statement:
    SELECT X
    FROM T1
    WHERE C = :P2_X_C
    P2 displays nicely. We set P2_C to display only, and allow the user to enter values for the other columns. The value displayed for X is not NULL and correctly matches the value from P1. However, when we hit the CREATE button on P2, we get error: ORA-01400: cannot insert NULL into "T1"."X". Unable to process row of table T1.
    APEX seems to have an "issue" with having a value in a form "set" and transmitted to the DB on INSERT.
    Any help would be greatly appreciated.

    Hi,
    1 For "Display Only" items that you are not populating directly from a database column, if you want to save the value, you have to ensure that Save Session State is set to Yes and these items are not actually submitted with the page. The same sort of thing would apply to Disabled or Read-Only items as browsers do not submit these items - though these are more tricky to deal.
    2 Passing the PK value is the most common way of identifying which record contains the values you need. Passing other values is also typical - eg, for applying filters for calendars or searches or for setting flags.
    3 For database columns, which should be based on the underlying table's data, you can use the Default Value settings - though be aware that these values do not exist in session state until the page is submitted. That's ok if you don't need to use the value anywhere else on your page
    Andy

  • Multiple Behaviours on EventTrigger, how to have an animation play and then navigate to new page?

    Hi
    Very new to this and coming from a VB6 background.  I have a Login Grid that I want to scroll off the screen on a successful login attempt and then navigate to a new page in a WPF application.  How do I achieve this please, I have added a ControlStoryboardAction
    that plays the animation and also a NavigateToPageAction but I don't seem to be able to get them to work in a sequence, i.e. do the ControlStoryBoardAction first and when the animation stops then do the NavigateToPageAction. Its the sequencing that I'm
    having trouble with.
    I'm used to different Forms for each 'screen' coming from my VB6 days so maybe my approach is off?  Any help is much appreciated.
    Thank you

    Split the button from the image of the button:
    Put your 'poster' graphic on a PDF entirely on its own and import it as a layer with print turned off, as you've done, but add the sound and the button to the PDF as normal - setting the button to the 'invisible rectangle' style. The button will still "print" but of course there's nothing visible.
    The Import as layer feature in Acrobat works, but to be blunt it's a bit of an afterthought, and doesn't like anything strange on the layers you bring in. OCGs (layers) came from Illustrator as a way to move files between applications, and Acrobat needed to have some basic grasp of them just to fiddle about with stuff like watermarks, but it's not a full-featured OCG editor.

  • How to Navigate to Another page and Back

    Hi,
    Is there any way to navigate from page1 CO to page 2 (to run its CO) and then immediately return it back to Page 1
    Something similiar to method redirectToCurrentPage(), except in my case I want it to execute the CO of the 2nd page and return to page1.
    Basically, my page 2 CO populates some temp tables automatically when user logs in based on certain criteria. I want to know in Page 1 CO, if this table will be populated as I need to control some buttons rendering on page1.
    I am avoiding having to write the same code (from page2 CO ) to check if any records will be populated and wondered if there was any method which let me navigate to 2nd page and back.
    Thanks
    Shanky

    Hi,
    In the PR method of 2nd controller, try using forwardImmidiately() to previous page.
    --Sushant                                                                                                                                                                                                               

  • Navigate to another page in the same window problem

    Hi,
    I have a problem with the following scenario:
    When a user clicks on a link in a portal, a web dynpro page opens in new window with the url similar to this
    http://server:port/irj/servlet/prt/portal/prtmode/runtime/prtroot/pcd!3aportal_content!2fCompany!2fIntranet_v2!2fApplications!2fZZ!2fPages!2fBrowseCopies
    So basically in this way we only want to display this single application, without portal top level navigation, inner page, masthead etc.
    The problem occurs when we try to implement navigation from this web dynpro application to another page
    When we use WDPortalNavigation a new window opens but we want the navigation to happen in the same window.
    We cannot use LinkToUrl control with _self parameter because its not supported.
    We also cannot use HttpServletResponse by getting it through com.sap.tc.webdynpro.services.sal.adapter.core.IWDWebContextAdapter class.
    We also cannot use ExitPlugs because the error occurs with the message that the ExitPlugs cannot be used in portal.
    Basically I need a redirect to another page. Any ideas how to solve this problem?
    Regards,
    Ladislav

    Hi,
    the link which initially opens this web dynpro application page is contained in a html page.
    Here is the code:
    WDPortalNavigation.navigateAbsolute(
      "ROLES://portal_content/Company/Intranet_v2/Applications/ZZ/Pages/PurchaseRequests",
      WDPortalNavigationMode.SHOW_INPLACE,
      WDPortalNavigationHistoryMode.NO_HISTORY,
      "requestNr="+wdContext.currentContextElement().getRequestNr());
    Regards,
    Ladislav
    Edited by: Ladislav Pomezny on Jul 2, 2009 1:23 PM

  • When I open my homepage it opens and then redirects to another page

    When I open my homepage it opens and within seconds redirects me to another page, and keeps doing it..This is very aggravating.Can someone help me please.

    Reboot your iPad.
    To reboot your iPad, hold down the sleep/wake button and the home button simultaneously until the screen goes black and the Apple logo appears. If, during this process, a slider appears on the screen to power it off, ignore it and keep holding the buttons down.
    Rebooting your iPad can solve a lot of problems.

  • Reference a video on a flash project then go to another page on completion.

    Hello,
    I have read on the forum ways to accomplish this but it isn't working for me.  I have created a quiz in flash cs4 actionscript 2 that works.  I would like a correct answer to reference a video and play it, then go to another frame.  I have imported the flv file onto a frame by file/import/import video/  and I have tried both the external component and loading it on a website and referencing it.  When I preview this it plays the quiz and goes to the video and simply stops.  I don't know if my script in actions is incorrect, or perhaps the way I am referencing the video.  Is there a tutorial, or step by step process to do this?
    Thank you beforehand for your help.
    Mark.

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Value interaction navigate in new page

    Hi all,
    I want to jump to another report from a column using the Navigate option from the column properties. So far so good.
    But I want to open the report in a new page, is that possible?
    Also, I know about the possibility to use the Custom Text Format on the column using HTML code, but unfortunately I cannot use this because it doesn't take all values if there is a space (New York = only brings "New"). And I don't want to use the Column formula because it will then print all the HTML code when printing to a PDF. Very annoying though!
    E.g. I have to use the Navigate option :-)
    Have a nice day!

    Hi Joe
    Actually, I can drill/navigate from any of the buckets individually to the detail report. The basic requirement is to detail the value that is clicked on in the top-level report.
    So if I click on 20 in the 20k to 30k bucket measure, the detail report should show me the breakdown of those specific 20 products that make up that measure (same for all the buckets, show the specific products that make up the value for that bucket).
    The value in the 20k to 30k bucket will pass to the detail report if I use a 20k to 30k is prompted in the detail report. Now what if I navigate from 50k to 10k measure value. The detail report will need to have 50k to 60k is prompted as well, in addition to 20k to 30k is prompted.
    So now what will happen is, if I click on a value from 20k to 30k measure, it'll prompt the 50k to 100k measure as well (same report both measures are prompted). Hence, I 'll get the data for both measures instead of just the detail for 20k to 30k which is what I need when I click on a value in that column.
    eg. if the Top report looks like this:
    Region/Revenue 0 to 5k , 10k to 20k , 20k to 30k , 30k to 40k
    Eastern 20 12 23 21
    Southern 5 10 50 100
    If I click on 20k to 30k for Eastern (value 23), I should navigate to the details of the products that make up 23. So I have to use a 20k to 30k filter is prompted. Similarly for other measures. But the moment I do it for 2 of the bucket measures, say I use 20k to 30k is prompted and 30k to 40k is prompted, and I now click on 23 again, now 23 and 21 are both prompted
    and I get 23+21 records in the detail report instead of just 21 (since both the measures are now prompted).
    I don't think this is really possible in a single report because what I'm trying to achieve is essentially selecting prompting of columns.
    Hope this explains it clearly. Any suggestions?
    Thanks
    Ananth
    Edited by: Ananth V on Dec 27, 2009 1:56 AM
    Edited by: Ananth V on Dec 27, 2009 12:46 PM

  • Select option in select list and navigate to different page

    Hello,
    I have a tabular form.One of the item is a select list with 2 options. Selecting option one should take the user to page10(just an example) and display all the values of that particular row. Similarly selecting option 2 should take the user to page 20 and display all the values of that row.
    Can some one guide me how to do above mentioned job.
    Thanks in advance.
    Pravish

    @Avinash
      if f_cat-seltext_m = 'Select'.
        f_cat-col_pos = 1.
        f_cat-seltext_l = 'EDIT'.
        f_cat-Checkbox = 'X'.
        f_cat-EDIT = 'X'.
      endif.
    I am already passing f_cat-checkbox = 'X'.
    Thanks
    Kumar.

  • When I open new tab, it will go onto new tab then jump to another page without me touching it.

    When I open a new tab, it will be the new tab page, the one with the most viewed sites for 2 seconds. Then, it will suddenly change to another site without me doing anything. It isnt just one tab, its all tabs. please help me just get onto the most viewed.

    Hi Pancakeater,
    What kind of site is opened after 2 seconds? Does it look like advertisement? It could be that your Firefox installation has been hijacked. Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problem? Please report back to us, and help others with the same issue.

  • Interactive report: numbers of items values to passe to another page

    Dears,
    In the IR attributes, I display the column define as a link, in this section there are 3 items I can fill and choose the passing values to an other page.
    My issue is that there is only 3 items to passe.
    I would like to passe to my following page more than 3 items.
    How can I do this?
    In advance thx.
    Celio

    Celio,
    What do you want to pass, report column values? If so, just enter as many as you like in each field, separating them with commas.
    Scott

  • How can I take a single selected image from a slideshow to pass  to another page?

    I have a slideshow of several images from which a user needs to select one (for example the image that is featured in a lightbox after cicking the thumbnail) and then go to another page for further details on that image, with the same image displayed again, and where I want to embed some html to offer further options based on that selected image. How do I pass the name of the object from one page to another? How do I detect that a user has selected an image?
    I have tried setting each image in the lightbox as a hyperlink to a new page, and also tried setting its caption as a hyperlink, but neither of those ideas seem to work (at least in Preview).
    Any suggestions please? I am working in Muse CC 2014.

    Creating a hyperlink from the text caption should work. Try previewing: File/Preview Site in Browser to test.
    (I tested it using both Preview and File/Preview Site in Browser and it did link to the page I assigned)

Maybe you are looking for

  • How to install Rescue and Recovery 4.21 on Windows 2003

    There should be a good amount of users running Windows 2003 on their thinkpad for various reasons. As much as I tried, I could not get Rescue and Recovery's MSI to install on my X61 running Win2003 R2 SP2, despite attempts to modify the Setup.ini fil

  • Proxy creation

    Hi My scenario is like file-xi-proxy (server proxy). But as the file is yet to come we thought we will implement proxy code first in ECC system. So for the time being ........to create server proxy is it fine if we just creat Design Objects(repositor

  • Firewire 400 and 800 won't work

    Any trouble shooting tips I have a terabyte maxtor one touch. I've shut down unpludded all and started plugging in one at a time no luck. usb works fine.

  • Trying to get to app "off" the desktop, clamshell to internal display probl

    I'm only seeing this problem with one application but it's a problem. For a while now I've been running in clamshell mode with my external display at a fairly high resolution. I had an application window in the far right hand corner of my screen wher

  • CFCHART Not Displaying

    OS: Windows XP Professional ColdFusion: 8 Developers DB: SQL Server 2005 This CFCHART page used to be working fine, but after formatting the hard drive and reinstalling the OS, CFCHART is not working any more without any change on code. All other Col