Passing a value of ITEM to another page (java popup)

I have an interactive form that displays data based on query.

For example.
Page 1
Select a, b, c from test1;

element of a, b, c values would be P1_a, P1_b and P1_c, respectively.

I created a link to c field. When I cliicking on the link up a window
and redirecting to another page.

I then run a separate application on the new page 2 as follows.

Select x, y, z with x = test2: P1_a;

The problem is nothing is displayed and no error no is shown. The pop up successfully
to get up, but no data is displayed.

How to pass the: P1_a value of page 1 on page 2 for the query to work?
I have to explicitly set it elsewhere? I thought that this is already done.

Thanks in advance for your time,
ANON

Published by: Anon on August 17, 2009 19:56

Try to use a collection. This always works for me... simple and neat.

Tags: Database

Similar Questions

  • Passing a value of item to another page via the button set to redirect to the page

    Hello

    I'm new to APEX and I develop an application to manage Oracle database user accounts.  I have a (8) page that has text elements for the user name and the database name.  I have a submit button (this works very well) who deliver... the ALTER USER statement to reset his password and unlock the account.  I have another button that if:

    1. get the value of username - P8_USERNAME
    2. assign to an element of application - FIND_USER_IN_DB
    3. redirect the page application - page 11

    The issue is that FIND_USER_IN_DB does not get filled and page 11 which is a simple report with the following query:

    SELECT *.

    OF valid_db

    WHERE username =: FIND_USER_IN_DB;

    How to achieve this?

    Thanks for your help.

    Steve

    A page redirect is actually nothing more than the rendering of an anchor tag or call apex.navigation.redirect. The link provided by these is generated when the page is rendered. Thus, when the page is rendered (in charge) and P8_USERNAME session state is NULL, then the link will be an empty value. There is nothing sad about the fact that when you change the value of the element on a page that session state will not change automatically and it's just about understanding session state.

    Let's say that you will present the session before the redirection if status point. Would it change anything? N ° the link, as I pointed out, has already been made, and no substitution of session state not be made on a redirect.

    You'd better be off by submitting the page via the button instead of a redirect. This will set the session state of your object to the desired value. You can then use a branch to redirect to the correct page setting the value of an element whose state of session of P8_USERNAME. You can even choose to use a process or a calculation to set the value of the application instead of by a link element, so that you can keep the application not manipulable by the user element.

  • How to pass a value of text to another page?

    If you have a text input and a button to the page 1 how to make that value available on page 2 after clicking on the button. I created a flow of the page by clicking on the button brings me to page 2 but not sure where you get the value of input text that was on page 1.

    Thank you.

    As you can see in the code I added an inputText and a CommandButton on page1.
    I use setActionListener to pass the value of page1 page2 declaratively.
    In faces config, I created a stream of page 1 to page 2. The value 'of result' as the action attribute of the commandButton control.
    I created with an outputText page2.
    Everything you enter in page1 should appear in page 2 when you click on the CommandButton.
    Yet, you can't make it out, let me know your email id, I will send you the sample application.

  • Pass the value of the item to another page of link

    Dear,

    I would like to pass a value of item to another page.
    I use:
    http://xxxxx:7777/pls/apex/f?p=200:46:80254239052108::NO::P46_TEST,P46_TABLE:#LABEL#,&P56_HW
    # is wel #label moves to the next page but no P56_HW.

    Could someone help me?

    THX.

    Celio

    Hello

    You are missing the point in the end, it should be & P56_HW. (with the full stop), which is part of the syntax of substitution.

    See you soon

    Ben

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

  • Copy the value of the item to another page of the apex in a field

    I have a main table and adds a new button.

    In my master table, there is a client code.

    If I press this button again, I will be referred to another form on another page where I can create log files.

    For the moment, I have to insert the client code in this form.

    How is it possible to copy the customer ID, if I press the new button in the main table, if this customer code (value) will be copied

    in another article on my other page?

    Hello

    What version of APEX are you using?

    Solution for this should be simple.

    Just edit the button element. Assign it "Action when the button is clicked" "redirect to the page of this application.

    "Then set: Set on these elements ' with the name of the target element and the 'with these values" with the name of the source element.

    The same works also for reports. But instead of the nom_element, you must add the column name as: #COLUMN_NAME # for 'with these values.

    Concerning

    J

  • Passing a value around JS for element Page JS does not

    I have several lines being generated by the region of PL/SQL code that creates several objects of apex_item. An identifier unique is assigned to each element by adding the line number to a name, i.e. item_nbr_1, item_nbr_2, new_item_1, new_item_2, etc. The item_nbr_n column has a JS that are associated with onChange. Within the JS I get the line number and assign to a variable as in
    <script type="text/javascript">
      function checkItem( pThis ) {
        var l_ndx = pThis.id.substring(9);
       $s('P1115_NDX', l_ndx);
        var l_itemnbr = $v('item_nbr_' + l_ndx);
    .
    .
    .
    This $s ('P1115_NDX', l_ndx); is it so I can keep the line number to view later if necessary. More on that later.

    In the end, if the item_nbr is entered exactly matches one and a single item in our product list, the checkItem function makes a call AJAX to a level application process and passes the value entered in the field item_nbr generated dynamically, through the item_nbr and line number, alias l_ndx. The APA process. then fill other fields of the line identified by l_ndx, such as description, cost, price, etc.

    If the item_nbr is entered corresponds to the first characters more of an element or does not match any at all, the user is presented with an area of search criteria with which they can modify the entered item_nbr and/or add other search criteria. On this area of search, the user also has the option to request that this item be sought by purchases and added to the list of products.

    It all works well so far, with the use of a variety of functions in JS and AJAX calls. The problem is the process of a new element. If the user clicks on the button new item in the search criteria area, I want a JS call to check the new_item_n on the appropriate line. However, at this time I have more the line number to add to the 'new_item_' so that I can "check" the box.

    So, back to the $s ('P1115_NDX', l_ndx); escaped to above. I show the point of P1115_NDX, so I can confirm that the value is used. However, the newItem function does not seem to be able to read the value of the page element:
      function newItem() {
        var l_ndx = $v('P1115_NDX');
    /*    l_ndx = 5;*//* Test for correct operation if the value is hard coded. It works */
        alert("The index of the check box is " + l_ndx);
        $x('new_item_'+l_ndx).checked = true; /* This courtesy of Hari from Trying to Set an APEX_ITEM.CHECKBOX with JavaScript */
      }
    With the hard-coded test line commented, the alert does not return a number and the check box is unchecked. When the test line is not commented, this code works fine.

    Thus, the result is, how should I store and subsequently make reference to the number line which began a series of events?

    Thanks, especially for reading this,

    Gregory

    Published by: Gregory Hansen on October 21, 2010 09:06

    Gregory,

    In your function newItem try to get use of the page variable value

    var l_ndx = $x('P1115_NDX').innerHTML
    

    Based on your statement:

    Gregory Hansen wrote:
    So, back to the $s ('P1115_NDX', l_ndx); escaped to above. I show the point of P1115_NDX, so I can confirm that the value is used. However, the newItem function does not seem to be able to read the value of the page element:

    It seems that P1115_NDX is a display only element so you can see what is happening. In this case the above should work.

    Note that if you switch to a hidden item I think you need to go back to the $v (without the .innerHTML) rating.

    HTH
    Brother

  • In Muse can link you to an item on another page?

    I was hoping there was a way to link to a 'factor' (and not a page!), located on the page of the anther or Muse natively or by a script.  I'm not a coder or I wouldn't use Muse.  I know that you can link to other pages, but I don't know about elements of other pages, specifically a "Lightbox" pop-up.

    I have a pop-up on a secondary page, lets say page 2, I would also pop up on the page of the anther, say 1 page, when you click on it on page 1, but I don't want to have to put this Lightbox pop up in two (two) places because I actually have a few hundred of them.

    Any suggestions would be greatly appreciated.

    Thank you

    Ryan.

    If you want the pop up on several pages, you will need to put on several pages. Or you can add the link to the pop up as well as the pop up itself to a model and create the pages that you want that pop - up using this model. You can try is to have your pop on a page in itself no model or other content and then add the page to another page using an iFrame.

  • Passing the value of Poplist on Update Page

    Hi all

    I created a search page and a page update (to create and update).
    In the results of advanced table Variable name is a link and set the Destination URI of property as

    {& varId={@VariableId} & retainAM = Y'

    When I click on the link for the name of the Variable for a single line in the table results, he gains access to the update with a single correct registration Page.
    All columns in the table of results on the Update Page are messageTextInput. (Name of the variable, Description, Type of Variable, definition, assignment)

    Now, when I change the 'Type of Variable' column to messageChoice and navigate to update the page through the link in the name of the Variable on the search page, I get all the correct values with the exception of the Variable Type.

    The properties defined for the 'Variable Type'
    See definition of the choice list: xxlc.oracle.apps.okc.poplist.server.XXLCVarTypeVO
    Attribute drop-down list Display: meaning
    List drop down attribute value: LookupCode

    Discovers his: XXLCUpdVariablesVO1
    Display attribute: VariableTypeMeaning.

    Why it does not Type of Variable correct when display goes to messageChoice?

    Thank you
    SK

    SK

    The problem is with your defination of lookup you gave. Let me understand you

    Attribute drop-down list Display: meaning
    List drop down attribute value: LookupCode

    When setting the dropdown attribute value you save it as LookupCode. So what is this list of choices is displays the meaning based on LookupCode

    but when you set VO instance for that at the moment you are referring to the meaning that the attribute that must match the attribute Value list of choices.
    As when you enter the update of the page and query the data then the value which must be stored in your domain is XXLCUpdVariablesVO1.VariableTypeMeaning
    But your choice list values based on lookupcode that is to say the Value lookup attribute. You set it as VariableTypeMeaning which does not matches and your piclist empty poster or default value.

    Discovers his: XXLCUpdVariablesVO1
    Display attribute: VariableTypeMeaning.

    The simplest solution is to change the value attribute lookup in this sense or BC4J view attribute in the Lookupcode form.

    I hope I'm clear!

    Thank you
    AJ

  • How to call another page in popup

    Hello

    I have a small requirement as follows
    1 al ' adfc-config, I have two pages p1 and p2.
    2 pi has a popup, popup contains a cb1 button.
    3 when the click on cb1, I need to call the page p2.

    Let me know, what is the best way to do it.

    Concerning
    Akshay

    create a navigation flow of control from page 1 to page 2.
    Name it as 'goTopage2 '.
    predict the result of the action of comandbutton as a property

    
    
  • Passing the value of the element of a page to the other

    I have the following requirements.

    Page 1: Register Username (form)
    -Insert the user name in A Table
    -Redirect to the new page
    Page 2: Collect modules (form)
    -Insert the info collected in table B
    -User name of Page 1 is the primary key

    My problem:
    I can't understand how to use the value of the username (Item1) from Page 1 to Page 2.

    What I tried:
    (A) Item2 created in Page 2
    -After that treatment direction Page 1 value with the value of Item1 Item2
    -no value not transferred (failure)
    (B) source edited Item2 on Page 2 for:
    -Used: Always, replacing an existing value in session state
    -Type: point
    -Session State: per session
    -Value of source: P1_ITEM1
    & Several combinations of the two

    My question:
    Passing a value of item from a page to another seems to be a relatively basic operation.
    Am I trying to do something that APEX isn't designed to handle?
    Is there a practical way more traditional or better to deal with these issues?

    Any comments I can get would be great

    Thank you
    Dan

    Published by: 903485 on December 20, 2011 06:26

    If the value of the item has been saved in session state (it is generally except if you explicitly Apex to not save the value in session state), then you can reference any element in your application to any other page or another process. So in other words you have a process on page 2 that runs before your page content (FRONT header, AFTER the header or BEFORE REGIONS) that does something like this:

    :P2_ITEM := :P1_ITEM;
    

    If you do that, then should have recorded the value on your other section of the page. This can also be done with calculations. It can also be done with the attribute of the SOURCE of your page, article, and there is probably some other ways to do it as well. One of these should be able to meet your need. Good luck.

    Earl

  • Pass the value to your

    Can someone give me some advice on how to pass a value for one form another page with BC. Basically I want the user to be able to select and image and gallery images 'value' through the form in a hidden field that is a page. I found a video on kiyuco, but it was for the passage to change the url. Not exactly what I do.

    To pass values between Forms in one of the examples is through the url.

    If the form page that link you to the url would be something like:

    /thispage? aParamater = yourvalue & anParam = another value

    Where? -sets your created data casablenca

    aParamater - the name of your parameter that will store a value

    yourvalue - is the actual value

    & appears as & and you add another parameter and value

    After that, are the other parameter and value.

    On the page, you have the shape that you use {module_url, aParamater} for example in the value of input field to your form ( value = '{module_url, aParmater}' )

  • Passing the value with coma inside to another page

    Hi all, need your help.

    I have trouble to clarify how to pass value with coma to another page.

    For example, I have a P2_NAME field: with the current value: Test, name

    When I'm passing this on page 3 I get only from Test. I do not understand why, but I do not know how to deceive the APEX?

    var url = ' f? p = & APP_ID.:3: & SESSION.: NO::P2_NAME: "+ $v ('P3_NAME');

    Window.Open (url, "name", "height = 600, width = 800, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");

    Thank you very much

    Andrei

    Hello

    This might help

    2.5 understanding URL syntax

    List of values of the element used to define the session state in a URL.

    Item values cannot include settlers, but may contain commas with backslashes.

    To change a comma in a value element, place the characters with the backslashes. For example:

    \123,45\

    Kind regards
    Jari

  • Who knows how to pass a value from the form on the next page of javascript?

    I have a simple drop-down list. Maybe this isn't the best way, but I use the MM_goToURL function on the onchange event. It works very well so he can redirect without clicking on the submit button.
    What I need to do, it's pass the value selected on the next page and grab it so I can use Coldfusion to manipulate the results.

    Help, please.

    The answer is too simple. Just use javascript to submit the form onchange.



  • Copy the text of form field text box on another page

    Hi all

    I'm designing a document using Muse who, in a wizard-esque fashion, get the user to fill the fields of the form, and then the text entered in form fields is automatically filled fields of text on other pages so that a customized document can be printed.

    However, research, I made, I have not found anything I can use other than using PHP code style but I can't juxtapose that to bring the value of text to another page instead of an email.

    Any help would be greatly appreciated.

    Thank you, in advance.

    You need to add a custom to your form code to achieve this.

    These links will give you the correct answer:

    http://StackOverflow.com/questions/18474499/auto-populate-field-base-on-what-was-entered-i n - one other-field-simultaneously

    http://StackOverflow.com/questions/11660395/how-to-Autopopulate-an-HTML-form-and-submit-it - instantly

    http://icode4you.NET/website-forms-use-JavaScript-to-auto-fill-one-field-with-the-values-f rom-two-others-fields.

    If you use Adobe server for hosting your site, this document will allow:

    Customization of Web Forms

    Thank you

    Sanjit

Maybe you are looking for

  • Siri/Voice SMS/front Mic camera does not

    I filed a complaint for this March 12 in an Apple Service Center, but they said mic is stuck can not fix it and already altered sound. I told them the only person use it and no way to alter what I force gave to another authorized service center befor

  • Vizard of missing Toshiba Recovery

    Hello! I have a problem. My cell phone was in the service of repair and so they have restored Windows only, but the rest is deleted. Even the office license and now I want to put computer to factory settings. There is no recovery toshiba vizard. I un

  • Windows desktop 8: Crash when connection

    I enter the details (none), click Connect and it crashes every time. I tried everything, my windows is a clean install. Relocation, changing the settings, tried the proxy. Oh btw, I tried the Skype find in the store, that worked, but since it's so bo

  • Windows Sideshow w / Media Player

    Can someone tell me how to turn off the side or make sure it does not work with my Media Player. I've grown tired of my videos and music after that I stopped him. Thank you!

  • Problem with adf security

    Hi Experts ADF,I use Jdeveloper 11.1.1.6.I created a simple application using ADF, it contains 2 jspx page.Now, I got my app ADF with only ADF using the form based authentication and authentication.I use default login.html, but I changed the user int