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.

Tags: Database

Similar Questions

  • 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.

  • 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.

  • How to pass a value cannot be used in time during the Navigation target

    Hi all
    On a dashboard, I have a poster measure info bar chart by name each month (month name being on the x axis). The months displayed are based on a dashboard command prompt (year, month name) year-to-date.
    When I click on the bar of a month on the chart name, I use the Navigation target to open another query in the dashboard. The target a YEAR and MONTH "is requested. For example, if I click on 'MAY' bar, the other application opens to display data «CAN» Everything works.

    However, I need to do this not for the month selected as described above, but for the year to date instead. For example, I click on 'MAY' bar, I want the other application to display the data of 'JAN' thru 'MAY', not just 'CAN' itself. I'll do the same thing I have done to the request of the source, have a filter for the month number (not the name of the month) and have a 'BETWEEN 01 and xx' where ' xx will be calculated by taking the name of the month and using the number of months instead, so it would eventually "BETWEEN 01 and 05.

    Question: Is there a way I can pass the name of the month which was clicked on the chart and move on to the target, so I can use in a calculation and not the filter "is invited"?

    Thank you!

    _Analytics,

    I had the same solution but slightly different. It's different because you assumed this month as the number of months, but according to the scenario described by the user, is a name of months where the navigation must be done.

    user13033100,

    Here is the solution with an sine qua non - year should be fixed by default.
    Outside of having a main report and the subreport, create an additional report by month #, name of the month, call the "report additional sup.
    Now in the ' additional report under ' create filter of month name as "" is bringing"---> bar value from the master report is passed to this 'report additional sup '.
    Thus, month # column "additional sub of the report" gives you value months appropriate to limit the subreport.
    Month # of the report additional sup', create a filter on the column for the month in the subreport. The month filter sub report must be an advanced filter 'filter based on the results of another application', search for ' report additional sup ' month # column. In here a consumption below or equal operator.

    Quickly close the thread if replied/useful.

    -bifacts
    http://www.obinotes.com

    Published by: bifacts on October 21, 2010 14:12

  • How can I transfer all my applications paid on another device via the cloud? When I downloaded the cloud a few apps says 'install', while others said 'try' even if I already bought it.

    How can I transfer all my applications paid on another device through the creative cloud? I have them on both my computer a laptop in the past, but the clouds of my computer wiped when I had to get it fixed and lost all applications. When I went to reinstall some applications say 'install' and some said to 'try', even if I've already paid for them. Please help, I need these applications to the school.

    Hello

    Please refer to the threads creative software says cloud my free trial has expired, but I have a paid subscription

    Or you can see the steps from here: https://helpx.adobe.com/manage-account-membership/cc-reverts-to-trial.html

    Let us know if this worked for you!

  • I would like to know if I want to access another computer in another country via the internet, is it possible that I can use internet from the other computer that I am trying to access?

    Remote access over the Internet regarding:

    Hello

    I suggest you to follow the links and check out them.

    What is the difference between the remote desktop connection to remote and support Windows?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-the-difference-between-remote-desktop-connection-and-Windows-remote-assistance

    What is Windows Remote Assistance?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-Windows-remote-assistance

    Get help with your computer using the support Windows remote

    http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-your-computer-using-Windows-remote-assistance

    Help someone with a computer using the Assistance problem Windows remote

    http://Windows.Microsoft.com/en-us/Windows-Vista/Help-someone-with-a-computer-problem-using-Windows-remote-assistance

    Windows remote assistance: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-remote-assistance-frequently-asked-questions

  • Migration of application to another workspace via the script

    Hello

    I want to install an APEX application in a new (empty) workspace with a fix application_id.
    I use the following script

    Select workspace_id
    in l_ws_id
    of apex_workspaces
    where workspace = "TEST_WORKSPACE";

    apex_application_install.set_workspace_id (l_ws_id);
    apex_application_install.set_application_id (l_ap_id_fix);
    apex_application_install.generate_offset;
    apex_application_install.set_schema (Root_User);
    apex_application_install.set_application_alias ('SP_APEX');
    apex_application_install.set_application_name ('SP_APEX');

    Hi Kirsten,

    I'm happy that I could help you.
    you would be so kind to mark the correct anwser, as shown in the [url https://forums.oracle.com/forums/ann.jspa?annID=1324] announce: Oracle Application Express welcome to the Discussion Forum!

    * It is considered good etiquette to the responses of reward with points (as "useful" - 5 pts - or 'correct' - 10pts).

    Thank you
    Erik-jan

  • 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

  • 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

  • JavaScript: to pass values to another page

    Hi all

    I HAV an interactive report. If I clik on a particular line, who has the rank of values must be sent to another page (via javascript)

    I found this forum https://forums.oracle.com/thread/2467579 in which they hav used to send mail.

    but I wanted to pass those values to another page throug javascript bz, I HAV installed a nd wrking her under right clik plugin.

    my javascript function is,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:'+ $(el).children('td[headers="EMPNO"]').text () + ',' + $(el).children('td[headers="ENAME"]').text ()";

    }

    Here I HAV it redirected to page 2 and on the 2nd page I HAV 2 elements used to get these values.

    $(el).children('td[headers="EMPNO"]').text () + -> is to fetch the empno of that particular line and the same for the name.

    But if I click on the right button clik, no action that happens...

    but his work well, if I use the function as,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION. » ;

    }

    so somewhere will not passing the values in the URL, I guess...

    and I HAV used al d above things in

    http://Apex.Oracle.com/pls/Apex/f?p=71510:1 (username: test / paswrd: pex14gm)

    pls help me...

    Thanks in advance

    Try like this.

    function func (action, el, pos) {}

    var empNum = $(el).children('td[headers="EMPNO"]').text ();

    eName var = $(el).children('td[headers="ENAME"]').text ();

    Window.Location = "http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:" + empNum + ','+ eName; "

    }

    It looks simple and neat.

    If you still get no view me details of the workspace.

Maybe you are looking for