Value of the page element in the APA process not maintained after the send this page

Hello - I have a sequence of events that goes like this:

(1) region 0 REG_1 Page is rendered before footer
-REG_1 region uses javascript / AJAX to call App process PROC_1
-PROC_1 defines Page1 item PAGE1_MESSAGE for X
-After that PROC_1 runs correctly, REG_1 don't doSubmit()

(2) region 0 REG_2 Page is rendered before footer; in this case
After the page sent by REG_1. (Requirements to ensure that)
REG_1 has not yet reached)
-REG_2 region shows an alert PAGE1_MESSAGE (= X).
-REG_2 region uses javascript / AJAX to call App process PROC_2
-PROC_2 sets page 1 point PAGE1_MESSAGE to Y
-PROC_2 sets point Application DEBUG to PAGE1_MESSAGE (this is for debugging)
-PROC_2 defines the point of Application APP_MESSAGE to Y (this is also for debugging)
-After that PROC_2 runs correctly, REG_2 don't doSubmit()

(3) after that REG_2 sent the page, here's what I have:
-Point application APP_MESSAGE = y. good. That's what it has been for PROC_2.
-Point Page 1 PAGE1_MESSAGE is bad. X. That's what he has been put to in PROC_1.
-Point application DEBUG = y. good. This shows at least that PAGE1_MESSAGE was
the value Y in PROC_2... but for some reason this value is not be kept
After the application process is running.
-There's that several other elements of the application located in PROC_2, and they are all correct.


Any ideas as to why this is happening? It seems like it should be
quite simple: set the value, send page, the value must be that
I put it.

Thank you
Carol

Hello

Exhibition (doesnot save session state), I am not changing who is P1_MESSAGE_1.

Why does that matter? Why does the hidden item behave differently?

Yes, Hidden Items by usually default state saves. But this isn't the problem in this case because I had changed the item to display only (state saved) and that did not help. Finally back in doesnot save state.

Try to replace alert (ajaxResponse); with the lines below

$s('P1_MESSAGE_1',ajaxResponse);
alert($v('P1_MESSAGE_1'));

Maybe the session state is defined (server), but the value in the DOM HTML (browser) to P1_MESSAGE_1 is not defined. If adding the line above works then the hypothesis is correct.

And I see that you made the source "static" assignment ...

Yes, I made this change, because it was a reference in itself I think it was redundant. And I had to correct what I thought is not just before debugging. Which cannot be linked to the problem though.

Kind regards

Tags: Database

Similar Questions

  • Why the "send this Page / link by e-mail" are gray out?

    Why the ' file - > Page / link by e-mail "are gray out?

    I use Win 8.1 (x 64) with IE 11.  Window live mail has already been set as a default for the reading of e-mail files.  Grateful if someone could give advice to the problem.

    wosozeng

    This is for W7, but it does not help? - http://www.winhelponline.com/blog/fix-send-page-by-e-mail-grayed-internet-explorer/

  • When I open photoshop elements 10 I see my desktop picture in photoshop elements 10 years I do not know how to avoid that

    When I open photoshop elements 10 I see my desktop picture in photoshop elements 1 - and I do not know how to avoid this. Does anyone know I can get rid of this picture, so that I can only see the workspace of elements?

    Thank you very much

    I guess that's on a mac? Window > Application frame.

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • How to transfer the text value of the element with the character of new line between pages?

    Hello

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    Cardel wrote:

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    This is one of the many reasons why it is inappropriate pass strings of characters between the pages through the URL. Instead of using a redirect button, change the button to send the page, then use the conditional calculations to set the values on the landing page and finally access the page using a conditional on submit: before Validation: (after calculation and before Validation and treatment) branch. When you press button terms of use on the calculations and the direction.

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • Referring to the value of the element Page 0 in another page

    Apex: 4.2

    All,

    On my page 0, I gave 2 parts in stock. P0_QUESTIONS as a screen only and P0_OPTIONS like a Radio button.

    The source of these items are picked on the backend tables based on the: APP_PAGE_ID.

    All on Page 1: I chose an option in the account of radio

    If I want to see the value above in Page 3, how to do?

    As the elements are on Page 0, there is no point on P1 to designate...

    How can I go?

    TIA,

    J

    J wrote:

    I have ' developing a simple application of review.

    I have two tables,

    (1) QUESTIONS

    (2) OPTIONS

    Each page will have two elements. Question (screen only) and Options (Group of Radio buttons).

    For now, I have two P0_QUESTION and P0_OPTIONS points to the page0.

    The values for the above elements will be extracted from the database based on the APP_PAGE_ID.

    But to store the value of P0_OPTION on each page, I have to create a local element in each page.

    Since there will be a lot of questions, there will be a lot of pages and I wouldn't manually create local objects on each page, instead it is possible to create a component hidden dynamically based on the page no? Or something like a table to store the value?

    It is not practical to create an application with a separate page for each question. This type of application can be dynamically driven data using a question page. Rather than use the 0 page, create a unique question page containing the elements of the question and option (personally I would use relationships rather than objects, but that adds more complexity) and another to store the current number of the question. Before you navigate to the page in question for the first time, create three collections of the APEX. Two collections on queries for issues and the basic options and a third empty one to store the user's responses. On the page in question, back issues and options of the collections instead of the base tables. This ensures that users get consistent questions and options sets, even though they are simultaneously changed by other users. Terms of use on the current number of the question to control the display of the next/previous/Finish buttons or links; conditional calculations on next/previous controls to increment/decrement the current number of the question; a process to register the user in the collection's response; a conditional branch, triggered by control of finishing for a final presentation page; and an unconditional branch to the page in question to scroll through all the questions.

    (This is a good example of a Problem of XY. Rather than ask the question "I develop an application examination.» How can I implement this in APEX? "before you start, you selected an inappropriate solution and asked about the problems that have arisen in its application. You should always include some background to the question and if in doubt about the best approach, describe the requirements, not a proposed solution)

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

  • The default value for the elements of the page get ready when the session is disabled

    Hello

    I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.

    Don't know what I'm missing here... Someone has encountered this problem before?

    Thanks in advance! Kindly let me know if you need more clarification.

    Is there a way that the page element can be defined at the time the page is loaded for the first time?

    Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:

    BEGIN
      :P10_MY_ITEM := 15;
    END;
    
  • Display the values of the Page element in HTML table

    Hi all

    could you please help me with the below? I want to have a table in the HTML area and to display in the table of elements of the Page of the page.

    I got the code like this:
    {
    < table >
    < tr > < td > & P1_ECEMEA_ASSISTANCE < table > < /tr >
    < tr > < td > & P1_ECEMEA_WIP < table > < /tr >
    < /table >
    }
    It shows the element of the Page names in the form of text, not the values.

    However, this code without the tags table:
    {
    ECEMEA request for Assistance of the CQT: & P1_ECEMEA_ASSISTANCE.
    ECEMEA CQT Work in Progress: & P1_ECEMEA_WIP.
    }
    Works and Page element values are displayed.

    Is it possible to display the values of the Page element in the HTML table at all or should I use a different method to show the values in a table? The above is only an excerpt of the code. I need to display about 30 items in Page, put in shape in a table with headers.

    Please let me know what kind of region is the best to use, or if I have to use only a few symbols of escape in the table code...

    Thank you and best regards,

    Vladimir

    Vladimir,

    Looks like you're missing the period after the substitution variables.

    {
    
    &P1_ECEMEA_ASSISTANCE.
    &P1_ECEMEA_WIP.
    }

    -D.

  • How to use the value of the page element in other pages too?

    Hi all

    How to pass the value of the item P26_NO from 26 to all other pages (such as 1, 2, 3... 25) using the & P26_NO. ???
    I set the default for this item.but I can't able to find value in the session state itself?

    Please post your suggestion here!

    Thank you and best regards,
    Robette.

    Robette wrote:
    Hi Amelia,.

    Through application process only we can able to save the page element value in session state? is there another way?
    Since my requirement is like I need to display footer text in all the pages, I have the version number included in this text, so I created a table and my intention to create an item and passing the point value for all other pages and see that point value & P26_NO. in the text. Version number is dynamic, it will change at each deployment.
    Is another way simple, other than my approach?

    Thank you best regards &,.
    Robette.

    You should use point demand for it and an application process to fill

    IF :APP_ITEM_NAME IS NULL THEN
      APEX_UTIL.SET_SESSION_STATE('APP_ITEM_NAME','myvalue');
    END IF;
    

    Published by: VC on June 25, 2012 13:48

  • 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

  • The assignment of value to APEX PAGE ELEMENT

    Hi all

    In Javascript I have value assigned to an element on the page P2_NAMES
    $("#P2_NAMES").val(Names);               //(Names is a variable used int he script)                   
    console.log($("#P2_NAMES").val());      //(to print in console of firebug)
                        
    The problem is that the console shows correct but to my surprise, the page output has passed an empty value on the next page during validation.

    When I click on the button 'Session' (Apex bar at the bottom of the screen) after I run the page - I don't see the values reported in the table of elements of page apex. Which means that the assignment of the value was not held, but the console displays the output.

    I also made sure that the Source "used" to the page apex element "Always, replace the value that exists in the session state»

    Masters, Help!

    Hey Shiva,

    There is also a feature in the APEX_UTIL package that will help you to define the session state of
    an Element of Page or an element of the application :

    http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDBGEEC

    But you must write a PL/SQL process to define the session state:

    BEGIN
        APEX_UTIL.SET_SESSION_STATE('my_item','myvalue');
    END;
    

    If through JavaScript, you can get through: AJAX.

    If default page layout then: dynamic Action advanced type run the PL/SQL Code runs above code block

    I hope that helps!
    Kind regards
    Kiran

Maybe you are looking for