Referencng a Page in another Page item value

Hello

I'm relatively new to Apex and I was using the Apex 4.2 Application guide to try to understand among other things session state. Could someone clarify if the following text, which is confirmed by the official user guide is accurate:

"When a user sends a page, the engine request Express automatically saves the values typed in the fields (items) in session state. For example, assume that you have an application that contains two pages. The first page of the application contains a form where a user can enter a phone number. You have defined this form by creating a named item P2_PhoneNo . On the second page, you want to display the information that the user enters in the form.

When the page is submitted, Oracle Application Express captures the value entered in the phone number field and stores the value for later use. The phone number entered by the user can then be retrieved from session state by referencing the element associated with the field in the page. »

What that means for me is that I should be able to reference/use a point value entered in a field (P1_SUPPLIER_NR on Page 1) on region SQL report IE another page Page 2, as follows: "SELECT... WHERE supplier_nr = : P1_SUPPLIER_NR'. What I found though, is that the value of P1_SUPPLIER_NR is always NULL when accessing the Page 2. I don't know how to move a Page 1 value to use in the Page 2, but the text seems to indicate that I am not explicitly change the value between the 2 Pages.

I use Apex 4.2 with the EPG and I am speaking here of Page elements rather than the Application parts. Any comments or links to articles relevant etc. are all welcome.

Kind regards

Kevin.

Kevin,

So, I think, at this stage, your question has been answered, though perhaps not the answer you were hoping for.

So that the value of Page 1 to be available to Page 2, the condition is that it must be defined in the session. As a beginner describes, how the simpler to proceed is junction of the page 1 page 2 following a send operation. There are other ways, through JavaScript, to put it in the session, but if your goal is less work, then this probably isn't it answer for you.

For what it's worth, branching and defining the corresponding items in the resulting page are the more standard way of doing things.

-Joe

Tags: Database

Similar Questions

  • To move a page item value in another element of the page

    I have page 1 and page 2, page 1 to an element name is name: _ and page 2 has an element name is your name _. How to pass the First Name of the element value in your name point.

    Please suggest me

    one way can be branch

    https://Apex.Oracle.com/pls/Apex/f?p=57481:22:8403002623920:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    Page 22

  • APEX 5.0 Page Item Value based on the event tab

    HI -.

    I had created classic report and having several Page elements such as
    P5_ITEM_NUMBER and P5_ITEM_DESC ((DISPLAY ONLY) etc.) For the P5_ITEM_NUMBER
    type of text field with AutoComplete with LOV query like Select item_code data.item;

    When I select the number of the item then it will automatically the value in the item Desc field and others etc. Here's my query sql to P5_ITEM_DESC.

    I tried to use dynamic Action, but it did not work. Can you please indicate

    SELECT ms.message, i.item_code

    Data.item i, data .message_string ms

    WHERE i.item_code =: P5_ITEM_NUMBER

    AND ms.message_id = to_char (i.description_id)

    AND ms.language_id =

    ((SELECT us.setting_value NVL

    OF data.user_info IU, data.user_setting us, data.setting s

    WHERE us.user_id = ui.user_id

    AND s.setting_id = us.setting_id

    AND s.setting_type LIKE '% LANG '.

    (Ui.username = 'ADMIN') AND 'US')

    Hey 2942415,

    Take a look here.

    I did only an example to you because of your request was wrong, but you can see how it works.

  • Disable or enable the well-founded key another text item value

    Hi all
    I am facing a problem in the development of forms of oracle.

    I have a query to find form containing 2 fields(customer_name_and_customer_number).i have a requirement that SEARCH button the form necessary to activate only if one of the search field contains data.
    I wrote a trigger to VALIDATE POINT during these two fields of research

    It's
    -Customer number
    IF the number of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    -the name of the customer
    IF the name of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    This creates a problem when I entered the data, it works fine but when I remove the data in both the field, after control is transferred to another area of the form, then only find button becomes disable.

    I tried the same thing in the ELEMENT of TEXT MESSAGE, ITEM of TEXT PRE, POST CHANGE trigger.

    I want once the data is completely removed in the second field, at the same time, it must be deactivated.

    Please help me solve the problem

    Thank you and best regards,
    Karthik M

    Published by: 984533 on February 19, 2013 21:32

    Karthik,
    Your code doesn't make sense to me.

    -Customer number
    IF the number of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    Why you try to set active CUSTOMER_NUMBER if not null? It goes without saying that if the field has a value entered in it, then it is ENABLED. Do you this also with the client_name field. Your field of research must always be activated, unless they are dependent on each other.

    This creates a problem when I entered the data, it works fine but when I remove the data in both the field, after control is transferred to another area of the form, then only find button becomes disable.

    I think that your best option would be to toggle your search button in the trigger a times-news-point-Instance of the block QUERY_FIND. Something like:

    /* Sample When-New-Item-Instance trigger */
    BEGIN
      IF ( :QUERY_FIND.CUSTOMER_NAME IS NULL AND :QUERY_FIND.CUSTOMER_NUMBER IS NULL ) THEN
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', ENABLED, PROPERTY_FALSE);
      ELSE
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', ENABLED, PROPERTY_TRUE);
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', NAVIGABLE, PROPERTY_TRUE);
      END IF;
    END;
    

    Remember that when you select an element that has been disabled, you must set the properties NAVIGABLE, UPDATE_NULL and UPDATABLE true also. In your case, since you let to a button, you etant donne que vous permettez a un bouton, vous aurait have just set the properties ENABLED and NAVIGABLE to TRUE.

    If you need forms to answer while the event happens (as you would like the button to activate as soon as a user begins to type in a field), you must use a 3rd party Java Bean (for example the KeyEvent Java Bean) or develop your own.

    I hope this helps.

    Craig...

  • Page to confirm item values

    Hello

    I have a form with 4 elements of page, simple text fields, and I as a confirmation message to be able to display their values when a user clicks on submit, but before it is actually submitted. I confirm dialog box pop up, but every page element values are empty, if I hit OK then it is submitted and successfully downloaded, so I know that it's working properly. So is there a way I can capture the values and display them before submitting?

    Thank you!

    OK, I see the problem.  This gets really complicated with DA because & P1115_HOSTNAME. is not a value in session state to what you are proposing.  You could do some actions "Set value" true before the confirm, but it can still does not work as you want too because this message be made client side.

    So, here's a solution without da pass Action your button defined by the dynamic Action of URL redirection.

    Use code like this:

    javascript:apex.confirm("Is this the correct hostname: " + $v("P1115_HOSTNAME") + "?", "SUBMIT");
    

    Your message may be all that you need and the SUBMISSION is the value of the actual demand for the button. So, if you need to RECORD use, etc...

    Now, I wonder if this text is exactly what you want in your confirmation message?  If so, you can use \r for new lines.

    javascript:apex.confirm("HOST\rhostname - " + $v("P1115_HOSTNAME") + "\rORA_INST\rinst_name - " + v$("P1115_INST_NAME") + "...more stuff....", "SUBMIT");
    

    Thank you

    -Jorge

    http://rimblas.com/blog/

  • Master Page Items question: I use master pages for a 60 page document and just found out that some of my master page items are multiplying! There are some boundaries on the pages and some of them are constantly a quantity apparently endless on top of e

    Master Page Items question: I use master pages for a 60 page document and just found out that some of my master page items are multiplying! There are some boundaries on the pages, and some of them are constantly a quantity apparently without end on top of the other. For example, I replace to change the color of the border and notice a black there's below him so I deleted the extra and there is another and another and another... EEK. I can easily hide them, BUT I fear they will lead to complications in the case of pre-press printing. What is the cause? What can I do to prevent it? How can I get rid of the stack-up?

    It's always haapening, if you substitute any element on the page and later master you reapply the same or another master. I would NEVER say to replace any itme master page in the page. Instead create another master based on the first, make the substitutions and apply this master. Substitutions on the pages should be avoided in all cases, not only for the problem you described above, other issues of accessibility will also come into play.

  • Why bind variables/page items does not work in the report query?

    Hello world

    I am trying to use the page as a bind variable in the query of my report. I checked the box to state of Session and also added my page elements in the LIST of ITEMS in the SESSION STATE.

    but NO RECORD not DISPLAYED IN THE REPORT at RUN TIME.

    to see live please connect to

    http://Apex.Oracle.com/pls/Apex/f?p=52297:LOGIN_DESKTOP:8355343133792

    user name: [email protected]

    password: 123456

    Hello

    I looked at the application.

    Do you want to go to the report page after click on the report button? If it is, your button to submit the page. Then, you need a branch to access this URL. By submitting the page, your value should be set at the session.

    Kofi

  • Consult the Page element values in the dialog box confirm dynamic action

    Hello

    I can return values to the Page item in the dialog box confirm dynamic action.

    I have a dynamic Action and I using the Action - confirm to display the confirmation message. I'm trying to refer point Page P1_EMP_NO say in the Confirmation box as shown below.

    Action - confirm
    Text - * & P1_EMP_NO.* "test123".

    When I have to run so that a dynamic action, confirmation shows only 'test123', the value for P1_EMP_NO is not displayed.

    My question is that we can refer such values as described above OR is there any other way to do it.

    ----
    Thank you
    Deepak

    Hi Deepak,

    You can see no elements in the confirm dialog box.
    You will need to write your own javascript and refer to elements such as dialog box

    $v('P1_EMP_NO') 
    

    Kind 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 answer to question please change replied and mark the appropriate post as correct / helpful.

  • Page Item refresh only in the session

    Hello APEX Experts

    I have some problems with dynamic Action "set value". What I want to do is located a Page element with a variable derived from javascript. So basically, I have a JavaScript variable ' test' which is changed by javascript code. I use dynamic Action "Set Value" to set this value in a page element. As a source, Im using "Javascript Expression." He was, however, the value set with JAvascript expression dynamic Action does not reflect this change in the session, then the page item is not updated.

    I tried:

    $s-> does not work
    Apex. Submit-> works, but submits the page. I need to present only the Page element.

    Any idea?

    Best regards
    Sebastian

    SebastianScholz wrote:
    but I am interested in solutions better and not unerstand why for Expression Javascript 'Page points to submit' option is not available?

    because JavaScript itself cannot change the session state from points, it must be done via ajax - which is the case at present.

    If this isn't a solution and this is how you use.

  • Video tutorial of Danielle Beaumont 'Add sensitive to the master page items' is not working properly. Adobe can address?  Or, please can someone help me?

    Video tutorial of Danielle Beaumont 'Add sensitive to the master page items' is not working properly. Now I'm stuck with the "Pigeon" - site and I do not know. can someone help me?

    Hello

    I don't know why he's not working on your side, because I am to play the tutorial in all browsers, however, I would suggest you to please try to delete the cache of your browser.

    And also to change your network if you are connected to a wifi.

    If none of them works, please try to uninstall the flash player and put it back, once the browser will ask you to do.

    Kind regards

    _Ankush

  • How to set the time to refresh the page items when the Page is loaded

    Hi all

    When my pages load, some hidden page items are displayed, and when the page load they are hidden again. Is it possible to keep hidden without this time to refresh?

    Thank you

    Bsalvador

    bsalvador wrote:

    You know the syntax of css to hide the label too?

    #P1_ITEM_X, label[for="P1_ITEM_X"],
    #P1_ITEM_Y, label[for="P1_ITEM_Y"],
    #P1_ITEM_Z, label[for="P1_ITEM_Z"] {
      display: none;
    } 
    

    However this will not affect the underlying layout grid, which still affects the appearance of the page. If possible you can put the items in question in separate regions [sub] and show/hide those, rather than the individual elements.

    Post edited by: fac586

  • Plugin SkillBuilders modal 2.0 with a touch of page-item - pass parameters

    Hi all.
    I have an employee table, which relates to a relationship 1: n with two tables: Emp_Tech_Fields and Emp_Kids.
    I created a form to update / insert data of the employee, and I want to add two modal pages: one for children and one for tech_fields. I think that this will be the way the more usable for this form.
    I created two page-item on this form buttons that open the respective modal pages with success, but I can not dynamically share the EMP_ID to filter the data in them.

    IV ' e downloaded to the http://apex.oracle.com/pls/apex/f?p=64921:1:6401028834215 example: comments / gu12est3
    Types of document is a report with a column of link that opens a modal with data filtering page, as it should.
    Employees (click on a link change) has two buttons: Kids, who open the modal form, but it does not filter and areas of technology, which is filtered hardcoded with EMP_ID = 1 (see the definition of dynamic action).

    As far as I understand it, this must be something quite simple and everyday, so I don't know why I have not found a way to do this. What Miss me?

    Any help will be greatly appreciated,
    Dovi.

    Hi Dovi,

    I took a look at your application and can see the link of your help for children and tech modal fields is not passing the session ID, this is why it asks you to log in again.

    Here is an example URL for your question, it is not tested however.

    f?p=&APP_ID.:20:&APP_SESSION.:::19:P20_EMP_ID:&P19_EMP_ID.::
    

    You need to change the page numbers of the pages and articles to match your page numbers. It's using the url defined statically in the plugin itself, I have also only done in an earlier version of the plugin, but I think the functionality is very similar.

    I hope this helps.

    Paul

  • Editing Master Page items

    I have a logo on my pages that descends from a master page. Sometimes it is in the way of content, so I replace all elements of Masterpage and delete it. Then, later, I discovered that it's baaack. I thought that if I left the page in this substitution, master page items would not update. In a document of p. 112, which is put under press, this can be a problem for me.

    First of all, there is no reason to override all Master Page items. You need only replace the logo by Cmd-Shift-click it.

    Logo should not be back soon unless you reapply the master for other reasons. Can you give more information?

  • The single Master Page spread value

    Hi guys, noob on inDesign scripting of apple and hoped someone could help me. I'm stuck trying to figure out how to put the first master spread in the document on a single page. I managed to create two new spreads masters with simple pages or face, although I can not change the first. I'm sure it's something simple I'm missing, but for the life me I can't see it.

    Thanks in advance, best regards, Rob.

    while(myMaster.pages.length > 1){
      myMaster.pages.item(-1).remove();
    }
    

    Substances

  • [CS5] Master page item affecting the spine

    Hello

    I get a weird behavior of CS5, where the program includes elements of master page wrong. I noticed this first on a file converted from CS3.

    I tried in vain to replicate this constantly in a new file. Master page items from time to time will appear on the opposite page if they affect the spine. Everyone knows something similar? Once this has happened once in the file, however, it doesn't go away. I have attached a three file idml page with just a few black boxes on the master page.

    http://www.sendspace.com/file/56hpgt

    It seems to me that the frame on the left is actually extending into the right page by a fraction of a millimeter which is samll as long as it is rounded to 0.

    If you select the check box to the left, set the ruler origin to the sovereign on the spine (for some reason, that which seems to be necessary), and then select a power of Attorney law-ege point in the transformation of the power of Attorney and re - enter 0 in the abscissa filed it seems to correct itself.

Maybe you are looking for