Page item value set in app process not maintained after page submit

Hi -- I have a sequence of events that goes like this:
1) Page 0 region REG_1 is rendered before footer
- Region REG_1 uses javascript / AJAX to call App process PROC_1
- PROC_1 sets Page1 item PAGE1_MESSAGE to X
- After PROC_1 executes successfully, REG_1 does doSubmit()
2) Page 0 region REG_2 is rendered before footer; this happens
after the page submit done by REG_1. (Conditions ensure that
REG_1 is not rendered again)
- Region REG_2 displays PAGE1_MESSAGE (=X) in an alert.
- Region REG_2 uses javascript / AJAX to call App process PROC_2
- PROC_2 sets Page1 item PAGE1_MESSAGE to Y
- PROC_2 sets Application item DEBUG to PAGE1_MESSAGE (this is for debugging)
- PROC_2 sets Application item APP_MESSAGE to Y (this is also for debugging)
- After PROC_2 executes successfully, REG_2 does doSubmit()
3) After REG_2 submits the page, here's what I have:
- Application item APP_MESSAGE = Y. Good. This is what it was set to in PROC_2.
- Page 1 item PAGE1_MESSAGE = X. Bad. This is what it was set to in PROC_1.
- Application item DEBUG = Y. Good. This at least shows that PAGE1_MESSAGE was
set to Y within PROC_2... but for some reason that value is not being preserved
after the app process is done executing.
- There are several other application items set in PROC_2, and they're all correct.
Any ideas as to why this is happening? It seems like this should be
pretty straightforward: set the value, submit the page, the value should be what
I set it to.
Thanks,
Carol

Hi -- Thanks for the suggestions. First and 3rd (default value, or being overwritten by process or computation) aren't happening. The source for PAGE1_MESSAGE having is Always, Using app item PAGE1_MESSAGE... but I don't see what else could work here. Not sure if that's the problem.
I've put an example on apex.oracle.com. Workspace is dew_mir_tor. Username is [email protected]. Password is Mir97Dew77!Tor. Application is 22679, RefreshAllTest.
To reiterate the description in my original posting, but using the real application item/region/process names:
0) Press Button REFRESH_ALL on Page 1. This branches back to Page 1.
1) Page 0 region Refresh_All is rendered before footer
- Region sends up an alert to show you it's working
- Region Refresh_All uses javascript / AJAX to call App process REFRESH_CZAR (You'll see a "wait" window flash up briefly while the app process is running)
- REFRESH_CZAR sets Page1 item P1_MESSAGE_1 to X (The text here indicates where
the value is being set and when it should be displayed)
- After REFRESH_CZAR executes successfully, region Refresh_All does doSubmit()
2) Page 0 region Refresh_Non_Czar is rendered before footer; this happens
after the page submit done by Refresh_Czar. (Conditions ensure that
Refresh_Czar is not rendered again)
- Region sends up an alert to show you it's working
- Region Refresh_Non_Czar displays P1_MESSAGE_1 in an alert.
- Region Refresh_Non_Czar uses javascript / AJAX to call App process REFRESH_NON_CZAR (You'll see a "wait" window flash up briefly while the app process is running)
- REFRESH_NON_CZAR sets Page1 item P1_MESSAGE_1 to Y (The text here indicates where
the value is being set and when it should be displayed
- REFRESH_NON_CZAR sets Application item TEST_VALUE2 to P1_MESSAGE_1 (this just shows that P1_MESSAGE_1 was indeed set to Y in this process...)
- After process REFRESH_NON_CZAR executes successfully, region Refresh_Non_Czar does doSubmit()
3) After Refresh_Non_Czar submits the page, Page 0 region Display_Messages is rendered.
It sends up an alert so you can see it's working, and then it displays the value in P1_MESSAGE_1.
The value is still the one that was set in REFRESH_CZAR, not the one set in REFRESH_NON_CZAR.
Note that Display_Messages sets P1_MESSAGE_1 back to null, so you won't see it in session state after it's displayed in the alert. But you can see that TEST_VALUE2 is set to the message from REFRESH_NON_CZAR.
Hope this helps solve the problem!
Thanks,
Carol

Similar Messages

  • Value set during onload() method not reflected on page

    Hi,
    I am using JDeveloper 11.1 release on a project that was migrated from 10g. The original project used ADF and JSF to build the application. Now since I have to continue the original framework, I cannot use taskflow for this project. Like a previous module I used onLoad() method to preset some of the form values which are bound to the backing bean bean1. However the page only picks the default values of the instance variables.Here is the code.The scope is request.
    [code]
    public class Bean1 extends OnPageLoadBackingBeanBase{
    private int value1;
    private String value2;
    // getter setter for these two.
    public void onPageLoad() {
         // based on some condition
         setValue1(3);
         setValue2("String");
    JSF page uses trinidad tags
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    <trh:cellFormat ><tr:outputText value="#{backing_Bean1.value1}"/></trh:cellFormat>
    <trh:cellFormat ><tr:outputText value="#{backing_Bean1.value2}"/></trh:cellFormat>
    [/code]
    Both the values in the form show their default states.
    I don't want to make the page sessionScope since I have seen issues with performance in the past. Please help.
    Thanks,

    Hi Frank,
    Thanks for replying. Yes. I have followed step 1 and 2.
    Step1 : public class Bean1 extends OnPageLoadBackingBeanBase{
    // where OnPageLoadBackingBeanBase implements PagePhaseListener
    Step 2:
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.64.93" id="Bean1PageDef"
                    Package="services"
                    ControllerClass="view.backing.services.Bean1">
    I can see that it runs through onPageLoad method, because Sops get printed here.
    public void onPageLoad() {
         // based on some condition
         setValue1(3);
         setValue2("String");
    What I have seen in my old code is we used to put something like this in the onPageLoad method.
                    FacesContext context = FacesContext.getCurrentInstance();
                    ValueBinding vb = context .getApplication().createValueBinding("#{backing_Bean1}");
                    ((Bean1) vb.getValue(context )).setValue1(25);
    Is this correct?
    Can you explain this :
    "       Also, since this class has been written for 10.1.3, there is a new property on the f:view tag: afterMethod, beforeMethod which      could also be used for a page to listen for the before render phase. Just create a managed bean reference for the before method     and look for RenderResponse to execute your code     "
    Do you have a sample I can follow?
    Thanks

  • Very intermittent missing page regions / report rows / page item values

    My goals in making this posting are twofold:
    1. I'm looking to see if anyone else has experienced this type of issue before.
    2. I'm looking for ideas about what can be done to debug such an infrequent bug with serious implications.
    Synopsis
    I'm having a weird problem where very infrequently I will load a page and I'll notice that one or more page regions, report rows, or page item values are missing. If I reload the page the missing parts appear as they normally should.
    By "very infrequently" I would say it happens to me somewhere between 1 in 100 and 1 in 1000 page loads, of course at my last project demonstration in happened twice in 10 minutes to my demo participants. I've attempted to debug this, but most of the techniques I know of involve reloading the page or reposting the form data and (of course) everything looks fine then.
    Environment
    * This has happened on multiple different pages, under ApEx 3.1 (Linux) and 3.2 (Solaris).
    * I believe that so far I've only ever seen this under Firefox 3/3.5 under OSX, but since I do the vast majority of my development with this browser it's not reasonable to conclude that it only happens under Firefox.
    Logs
    * No application errors during this timeframe.
    * Nothing of significance in the database alerts log (just thread notes and log sequences).
    * Nothing of significance in the webserver log (just the usual mod_ossl connection errors).
    Thanks for your attention,
    Jason
    Edited by: Jason G on Jul 24, 2009 12:43 PM

    Well, thanks for reading the post anyway.
    While working through some debugging steps I realized that I was populating some of the regions as the page rendered using AJAX -- this would pause the page rendering until the AJAX request returned. I believe that a hanging AJAX call was the likely culprit of the very intermittent symptoms I was seeing.
    I moved the AJAX calls to the last region of the page and added a javascript function that "watches the page load" by checking for regions by ID and looking at javascript boolean flags to let me know when the page is fully rendered. If this process takes longer than 5 seconds it notifies the user that something happened and offers to reload the page for them in an effort to fix the issue.
    So far, so good -- but it will take a lot of testing to convince me that this case is solved. I hope my documenting this is helpful for others in similar situations.
    Good luck,
    Jason

  • Dynamic alignment of report column and page item value

    Hi friends,
    I have an interactive report which contains the columns like
    <li>empno
    <li>Name
    In the above i have "empno" with a column alignment of left and a "Name" with a column alignment of left.
    Whether it is possible to override the data alignment that we set in the report according to the value of the application item like
    If my application item value is US, then i need the column alignment of both the column"empno" and "Name" to be left and if my application item value is AR, then i need the column alignment of both the column "empno" and "Name" to be right. Whether is it possible to achieve the dynamic alignment to the report data of both the columns "empno" and "Name" according to the application page item value.
    And also in the case of page item i have a page item with a name P1_NAME in which it has a Element Horizontal/Vertical alignment to left.
    I need that element alignment of the page item to behave dynamically according to the application page item, like if the application page item is US then the element alignment of the page item has to be left and if the application page item is AR then the element alignment of the page item has to be right.
    Whether is it possible to achieve my above two scenario's friends. Kindly help me with this.
    Thanks in advance.
    Brgds,
    Mini

    Kees,
    Your approach is excellent and brilliant:-)
    I tried with your steps and i can achieve those alignment in both ways like you said(either on page load/through DA).
    But im going with the DA way. I have certain query regarding this kees.
    <li>Suppose if the report, is classic whether i can go with the same approach that i have achieved alignment with the IR report.
    <li>Currently through the DA way, i used the page item in the condition. Is it possible to use the application item instead of page item in DA. Because im going to use the application item FSP_LANGUAGE_PREFERENCE for getting the code either 'AR' or 'US'.
    <li>Finally i need this kind of restriction for the page item also, consider like i have a page item P1_X with an Element Vertical/Horizontal alignment as left. Now i need to change that alignment to right according to the application page item value, hence i can give application item condition for the page item like below
    PL-SQL EXPRESSION: :FSP_LANGUAGE_PREFERENCE = 'AR'
    i need the element alignment of the page item to behave dynamically suppose if the application item value is AR then the element alignment of that page item has to be right if the application item value is US then the element alignment of that page item has to be left, irrespective of the page item Element Vertical/Horizontal alignment that was set to it.
    Thanks for your kind help
    Brgds,
    Mini

  • Download as in IR Search Bar resets Page Item values?

    Hello,
    i have in an IR a separate region that has Page Items. When i set to these Page Items values and press Go then their values are submitted and used in IR's query. The fetch is correctly being done. Then when i use Download As IR Search Bar, their values are being resetted to that when NULL and query is executed again and fetching wrong results in Excel csv file. Is this the normal behaviour of the Download As option in Search Bar? How can i avoid this resetting ?
    To be more exact the resetting is being done just after pressing the Excel Icon in Download As in Search bar.
    TIA
    Edited by: Dionyssis on 22 Οκτ 2009 6:38 πμ

    Finally i managed to find what caused the problem: i had a process in Before Header that was called from a user button in this area. This process cleared all value of fields and actually doing reset. I have failed to set it conditional upon Reset Request. After doing that it looks like it keeps the result set even in Download as. But i have noticed the following behaviour and i have made a case in apex.oracle.com for examination:
    http://apex.oracle.com/pls/otn/f?p=20695:1
    user/psw: demo/demo
    When you log in do these things:
    0. Open Basic Search Show/Hide Region
    1. Clear Date From and Date To field and tab out (JS scripts put default values)
    2. Click in Search Bar and select Filter
    3. Use as field : User Name, operator: LIKE and value: ADMIN
    4. Press Apply.
    5. It says No data found!
    6. Press Go
    7. It fetches correctly one row!
    Why Apply does not work ? Shouldn't execute the query ?

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • Page item values lost when moving application from 3.1.1 to 4.0.2

    I have an application that is working fine in version 3.1.1, but when I move it to 4.0.2, I'm having some issues with losing page item values. I have a page (6) with master key fields that are used to set page items on another page (7) when I branch to that page. In 3.1.1 the items in the page I'm going to are defined as 'Hidden and Protected' and in 4.0.2 they are defined as 'Hidden' (don't see a 'hidden and protected type'). When page 7 first displays, I see the values I passed in the session items. When I fill in the displayed items on the form and click to create a record, I get errors that the key values are null (these are the items I set when I branched to this page). When I look in the session items now, the values are missing. Why are the values lost and is there a work around?

    Hi there,
    In 4.0.2 there is no hidden & protected item but instead you have one select called "value protected" you can select yes or no there.
    Edit your item and See the "Source" region of your item, in the "Source used" it should be "current value in session state is null" and in "Source type" should be "static assignment..........".
    In the "Default" region the value type should be "static text ......."
    see if there is any changes in these properties.
    thanks
    Tauceef

  • Dynamically Update a number field by summing of page item values.

    Hi,
    I'm trying to update a number field on an apex page by summing up the values of multiple page items. I've tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm , especially the "Create a Set Value Dynamic Action Using PL/SQL" part.
    In the tutorial example they return an page item value P3_SAL multiplied by a multiplier they've determined by another page item's case. What I want to do is much simpler in that I just want to add up multiple page item values and then display them in a number field at the bottom of the page.
    so the code I tried to use based on the tutorial is in the tab: Home >Application Builder>Application 103>Page 3>Edit Dynamic Action>Create / Edit Action
    Set Type: PL/SQL Function Body
    PL/SQL Function Body:
    BEGIN
    return :P3_ITEM1+P3_ITEM2+P3_ITEM3;
    END;
    Page Items to Submit: P3_ITEM1,P3_ITEM2,P3_ITEM3
    But it gives me an error that I need to declare the identifiers, yet it works if I only use one item and I can perform any arithmetic.
    ie.
    BEGIN
    return :P3_ITEM1+1000;
    END;
    Any help would be appreciated.

    PL/SQL Function Body:
    BEGIN
    return :P3_ITEM1+P3_ITEM2+P3_ITEM3;
    END;
    Page Items to Submit: P3_ITEM1,P3_ITEM2,P3_ITEM3
    But it gives me an error that I need to declare the identifiers, yet it works if I only use one item and I can perform any arithmetic.In your code is missing the ":" for the items P3_ITEM2 and P3_ITEM3.
    Try this:
    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;

  • HT2693 My Pages App will not open after I recently updated it. I'm afraid to lose all my docs if I delete the App and re-install.

    My Pages App will not open after I recently updated it. I'm afraid to lose all my docs if I delete the App and re-install.

    First of all - you are running the proper iOS in order to use the latest version of Pages - correct? You need iOS 6 now.
    If so ....See if this helps. Maybe Pages will open after you try this.
    Quit the Pages app completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Or ..... Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If that didn't help backup and send your files into iTunes with file sharing.
    You could lose all of your files if you delete and reinstall the app. That is precisely why you should backup your iPad and send your files into iTunes using files sharing on the iPad. Do you backup or use file sharing?
    Backup your iPad, send the files from the iPad into iTunes using file sharing and then delete the app and reinstall it.
    Start here ..... How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    iOS: About file sharing.
    http://support.apple.com/kb/HT4094

  • Nokia C3's Nokia Email app is not responding after...

    Dear Nokia Team,
    When I updated my Nokia C3-00's firmware from version 4.60 to 7.20, the responsiveness of the Ovi apps (Facebook and Twitter) is much better compare before, BUT, when I am opening the Nokia Email app, is freezes into "Loading Mail" status for almost a minute... Any problems with my update?
    I properly connected this to my PC and it updated without any interruption... And some 3rd party apps is not working after updating to this version (I guess those few 3rd party apps doesnt know there is incremental update you provided for this model except Snaptu which is working now)
    Any address to this problem?
    Appreciate your immediate response. Thanks!

    hi. i also face the same thing on my nokia c3.Third party software not available and mail app not working.But unlike other replies i am going to give you a solution.
    Nokia new firmvare version i.e 7.2 currently block 3rd party software downloads.It only supports applications from ovi store.There is an installation process going on in ovi when we download an app which make it usable.so if you want to use a third party app all you hav to do is download it to pc then just copy that app to your memmory card or to phone memory which will work
    Next about the mail app.
    I am a user from india and using the connection idea.when i updated my phone software i also lost my email app.
    But yesterday when i requested for new internet setting i found in its items supported list, settings for nokia visual radio,nokia communities,nokia mail etc i set it as my configuration and used mail.At that time it was working.So you all want a propper internet settings containing settings for nokia mail to make mail app to work.Or you can configure it manually like you do on office outlook.
    If u face anyproblem in using nokia c3. I will be happy to help you.
    By
    Personal details removed by a moderator. We kindly ask you not to share your personal contact details such as your email address.

  • TS1702 My app store, Apple ID, safari, and most other apps do not work after upgrading to iSO 6, How do i solve this problem?

    My app store, Apple ID, safari, and most other apps do not work after upgrading to iSO 6, How do i solve this problem? Can somebody help me please?

    The App store is a problem for many and I have not seen a solution.
    What is "wrong" with your Apple ID?
    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • HT1937 I have installed an app : Birdfield guide in my iPhone 4. But the app is not working after installation. It shows black screen when opened

    I have installed an app : Birdfield guide in my iPhone 4. But the app is not working after installation. It shows black screen when opened. I need suggestions to make it work or the reasons for not working.

    Yes TeeKnows, try deleting it and download it again. After finished installation if still shows black screen delete it out off 'running apps' by double tapping the home button and swipe it off. If still shows black screen then try fully turning off your iPad (holding the sleep button) and turn back on again.
    I hope I helped
    thanks
    Lydia

  • Can you upload a facebook cover created in elements 13 to page that you manage? This is not my personal page but a community page. When I try to do this Elements asks me to revert back to my personal page.

    Can you upload a facebook cover created in elements 13 to page that you manage? This is not my personal page but a community page. When I try to do this Elements asks me to revert back to my personal page.

    Hi,
    You can also try one more workaround for this by using PSE Organizer. The steps are as follows:
    1. Create a facebook cover. In case you don't know how to creatw a facebook cover, please go through Photoshop Elements Help | Create a Facebook profile and cover picture
    2. Save the cover with "Include in Elements Organizer" option checked.
    3. Now, go to Elements Organizer and export that file.
        - Select the cover photo.
        - Go to File > Export as New File
        - Choose format and location.
        - Click OK.
    4. Now, you can use this file to upload.
    If you stuck somewhere or need any other assistance, do let me know.
    Thanks,
    Swapnil

  • Lync mobile app will not launch after upgrade to lollipop on HTC One (M8)

    Lync mobile app will not launch after upgrade to lollipop on HTC One (M8). Is this a known issue or is a fix available?

    Hi THGutz,
    Did you install the latest version of Lync for Android ?
    The current version of Lync for Android is
    5.5.3.8935.
    I don’t test it on M8, but on other Android 5.0 devices it works fine.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • TS1702 Certain apps will not work after ios6 install.

    Certain apps will not work after ios6 update. Tiger Woods golf will run for about 5 seconds and stop. Have uninstalled/re-installed to no avail.

    My husband had the same problem with some apps after I updated his iPad 2 to iOS 5.  I checked the app store and there were updates for the apps to support the new software.  After updating, all apps work just fine.

Maybe you are looking for

  • Very urgent:To find IDOC list in RSMO(BI 7.0)

    Hi all,            Its very urgent to know,for a particular load IDOCs used to run to process the data&dialogs,in 3.5 we used to get the IDOCs list in RSMO screen itself,but in 7.0 is not having that options,please tell me for a particular load where

  • Styles Not Mapped Correctly in Output

    I am using RoboHelp 8 and I am trying to produce printed documentation from a WebHelp project. I have chosen to use styles from a Microsoft Word template. I have a RoboHelp paragraph style named NumberedProcedure mapped to a Word paragraph style name

  • Method to determine whether or not the main clip is playing

    Is there an AS3 method that will return whether or not the swf has been paused? I tried to google this but I'm not getting anything.

  • How to view database values from server to client

    hi friends i have database in server side, i am storing values to the database from client side machine through remote methods. But now i need to view the database values from the server side. how to do this using RMI. Plz give me suggestion. by vino

  • Table Cells with dotted or dashed borders

    I created a table and to a number of cells created either dashed or dotted borders of various sizes. When I create a PDF, the dashed and dotted lines only show up as shaded lines. I have tried changing a number of PDF settings and still no luck. Can