Items not in session state when column link used and prevpage not submitted

I have a report on page 2 (cemetery lot info) with a column link to page 3 (burial info).
There is a process on page 3 that updates billing information using items from page 2, and billing code selected on page 3. The problem is, if the user does not submit page 2, session state is null, or has values from previously submitted page 2. How do I make sure the billing info is correctly updated from items displayed on page 2, if they are not in session state?
begin
if :P3_BILLING_CODE = 'OWN' then
:P3_BILLING_NAME := :P2_OWNER1_FIRSTNAME||' '||:P2_OWNER1_LASTNAME;
:P3_BILLING_ADDRESS1 := :P2_OWNER_ADDRESS1;
:P3_BILLING_ADDRESS2 := :P2_OWNER_ADDRESS2;
:P3_BILLING_CITY := :P2_OWNER_CITY;
:P3_BILLING_STATE := :P2_OWNER_STATE;
:P3_BILLING_ZIP := :P2_OWNER_ZIP;
:P3_BILLING_PHONE := :P2_OWNER_PHONE_AC||'-'||:P2_OWNER_PHONE_EX||'-'||:P2_OWNER_PHONE_SC;
elsif :P3_BILLING_CODE = 'MGR' then
:P3_BILLING_NAME := :P2_NEW_MANAGER;
:P3_BILLING_ADDRESS1 := :P2_NEW_MANAGER_STREET;
:P3_BILLING_ADDRESS2 := null;
:P3_BILLING_CITY := :P2_NEW_MANAGER_CITY;
:P3_BILLING_STATE := :P2_NEW_MANAGER_STATE;
:P3_BILLING_ZIP := :P2_NEW_MANAGER_ZIP;
:P3_BILLING_PHONE := :P2_MANAGER_PHONE_AC||'-'||:P2_MANAGER_PHONE_EX||'-'||:P2_MANAGER_PHONE_SC;
elsif :P3_BILLING_CODE = 'FH' then
:P3_BILLING_NAME := :P3_FUNERAL_HOME1;
:P3_BILLING_ADDRESS1 := :P3_FUNERAL_HOME_ADDRESS;
:P3_BILLING_CITY := :P3_FUNERAL_HOME_CITY;
:P3_BILLING_STATE := :P3_FUNERAL_HOME_STATE;
:P3_BILLING_ZIP := :P3_FUNERAL_HOME_ZIP;
:P3_BILLING_PHONE := :P3_FUNERAL_HOME_TELEPHONE;
end if;
update cm_burial set billing_name=:P3_BILLING_NAME, billing_address1=:P3_BILLING_ADDRESS1, billing_address2=:P3_BILLING_ADDRESS2, billing_city=:P3_BILLING_CITY, billing_state=:P3_BILLING_STATE, billing_zip=:P3_BILLING_ZIP, billing_phone=:P3_BILLING_PHONE
where recordid=:P3_RECORDID;
end;

Hello,
If I understand you correctly, it seems like your page logic is a bit problematic. The scenario I see is that the user is populating the form part, submiting the page, and the report region is being displayed (as the where clause depends on an item from the form region). Now, the situation you are describing, where the billing information is not correct, is possible if the user changed some of the form items on page 2, didn't submit the page – hence didn't update the report region – but still chose to branch to the next page, using the (non-updated) report link column. If I understand it correctly, you should first correct this situation. If the user is changing some details in the form section, the page should be re-submitted. This will resolve your problem, because as part of the page submit process, session state will be set correctly.
I believe this is the simplest and correct solution. Other options, like updating session state per changed item (using JavaScript) will be much more complicated.
Regards,
Arie.

Similar Messages

  • Htmldb_Get() not updating session state?

    Thankfully, I solved this problem myself before posting this, but I still have questions about why I ran into the problem in the first place.
    Alright, I have a javascript controlled interface on an ApEx page that uses htmldb_Get() for retrieving the current state of a row in the database and for submitting the data back to a page process to update the database row. I've checked my values from the javascript function that saves the data and the strings do contain the updated text from the interface, but when my page process fires off the strings have reverted to what was in the session state from the earlier AJAX request when the interface was loaded.
    * I've checked the session state and the variables in question are reverted, but I noticed that the item statuses are listed as "Updated".
    * I've also tested this process by passing the request string and page items in the URL and the process functions correctly.
    * I've double checked the item definitions to see if the items were being overwritten (they weren't).
    * I've checked the item types to make sure that none were "protected" (they weren't).
    * I haven't found any error messages in logs within ApEx.
    At this point I noticed that the AJAX requests to load the interface were showing up in the "Recent Page Views" report, but the save requests were not. For no particular reason I decided to switch from using the request string in the conditional for the page process and use a page item to control the mode as so...
    WAS:
    var get = new htmldb_Get(null,$x('pFlowId').value,'save_asset_tracking_info',11);
    NOW:
    var get = new htmldb_Get(null,$x('pFlowId').value,'',11);
    get.add('P11_FORM_MODE','save_asset_tracking_info');
    ...and magically the page items in the session state are being updated and all is well. There are few things more frustrating than spending hours debugging a process, then fixing it with an action that you are completely convinced won't change a thing.
    This make no sense to me and I'm hoping someone can explain it or at least point me in the right direction.
    Thanks in advance,
    Jason

    Apologies if I skipped a few details in my first post...
    I haven't included much of my source code because I don't believe it's the key to this issue. If you disagree, I will post the source code for your reference.
    On page 10 of my application, I have a floating div interface that appears in front of the page content. This div is initially empty, but I use JavaScript to make an AJAX call to page 11, strip out a specific region using the get.get() function. On the floating interface, there is a "save" button that fires off another JavaScript function that uses htmldb_Get() and get.add() to post all 21 of the items from the floating interface back to a page process on page 11. The "save" page process is at process point "on load - before header" and is extremely simple -- "if ID found then update record, else insert record".
    The problem I had was that after the "save" button was pressed, all of the items sent via AJAX to the page process were always identical to the initial values from when page 11 was rendered and the floating div interface was populated. This seemed like some sort of quirk or issue with the session state cache overwriting the values that were being sent via AJAX. As I said before, I checked the values in JavaScript immediately before the AJAX "save" submission and everything was kosher, but the page process never got those updated values.
    I managed to eliminate this "symptom" by simply...
    1. Setting the htmldb_Get() request string to null ("")
    2. Adding one more get.add() call for P11_FORM_MODE
    3. Changing the condition on which the page process was fired from the request string to the page item
    All of the other get.add() calls remained the same as did the PL/SQL in the page process.
    Thanks,
    Jason

  • ASP Web Forms Error: Session state can only be used when enableSessionState is set to true

    Hello,
    I am developing a custom application page for a custom Web Forms I am creating, which I plan on using for custom task form into SharePoint 2010 Foundation.
    Currently, I am trying to test it in Debug Mode using Visual Studio 2010 but when I am trying to use Sessions I get the error:
    Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration
    I've already done this on trying to fix:
    On my page
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestForm.aspx.cs" Inherits="TestForm" EnableSessionState="True" %>
    And on my web.config
    <pages enableSessionState="true">..<httpModules>
    <remove name="Session" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </httpModules>
    Note: I am getting an error when I try to add <module> into web.config
    ASP .NET State Service is currently running.
    And the part where it keeps error is when in PageLoad, I try to set a List object something like this:
    List<object> myobject
    get
    if (Session["object"] == null)
    Session["object"] = new List<object>();
    return Session["object"] as List<object>;
    set
    Session["object"] = value;
    protected void Page_Load(object sender, EventArgs e)
    myobject= new List<object>();
    BUT the error still persists! I also try to restart IIS but still the error still happens.
    I am running out of ideas so can you help me out?
    Thank you!

    Could be your skype intercepting your requests at 80 port, in Skype options uncheck
    Or Your IE has connection checked for Proxy when there is no proxy
    Or your fiddler could intercept and act as proxy, uncheck it!
    Solves the above problem, It solved mine!
    HydTechie
    HydPhani

  • Previously used overdrive media console to download audio books now i get an error message when trying to sync to iphone 4 after upgrading to 10.5 itunes and 5.0 on iphone unable to download audiobook states cannot play on iphone and does not convert

    previously used overdrive media console to download audio books now i get an error message when trying to sync to iphone 4 after upgrading to 10.5 itunes and 5.0 on iphone unable to download audiobook states cannot play on iphone and does not convert

    previously used overdrive media console to download audio books now i get an error message when trying to sync to iphone 4 after upgrading to 10.5 itunes and 5.0 on iphone unable to download audiobook states cannot play on iphone and does not convert

  • Session state can only be used when enablesessionstate is set to true.

    When I try to open up a certain webpage it says; Session state can only be used when enablesessionstate is set to true. What does it mean and what should I do?

    Contact the webmaster for that site and report the problem.

  • HT4060 Is it normal for someone to have general diffuculty charging an ipad?  I see the "not charging" message even when I am using the charger and cord that came in the original box, plugged into a wall socket directly.  It just seems to be exceedingly f

    Is it normal for someone to have general diffuculty charging an ipad?  I see the "not charging" message even when I am using the charger and cord that came in the original box, plugged into a wall socket directly.  It is normal for me to plug it in overnight and to see no charge whatsoever the next day.  I have never had so much trouble using a friggin charger in my life.  It just seems to be exceedingly finicky.  What am I missing?

    Charging your iPad should not be problematic. It should be an easy thing to do using the charger provided with your iPad connected to a known good wall outlet.
    The charging problem you are experiencing is most like caused by:
    1. A faulty charger
    2. A faulty cable
    3. A bad wall outlet
    4. A problem in the iPad.
    The first three of these are easiest to eliminate. Try a for ends charger and cable. Make absolutely sure your outlet is good. Try other outlets.
    If the charger, cable and outlet a proven to be good then the problem lies in the iPad.
    Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    I sent an email to TerraGo Support and they sent the following response: "This has bug has been discovered and our development team is quickly creating a patch to resolve the problem. The patch should be available within a week or two. For your reference, the bug number assigned to this case is: 3620. Check back in about two weeks and hopefully the patch will be available. Again, I apologize for the inconvenience."

  • I am trying to send items to the Trash but it is continually running and will not complete.

    I am trying to send items to the Trash but it is continually running and will not complete.

    Relaunch the Finder, then from the Finder menu bar, select
              Finder ▹ Preferences... ▹ Advanced
    and uncheck the box marked
              Empty Trash securely
    Try again to empty the Trash.

  • I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    If you bought the machine new yourself, and did not enter a password when configuring it, leave the field blank.
    If you bought it used, then you need to reset the password, as described here:
    Apple Article to reset the password

  • "One or more pages are in use and could not be deleted" - AGAIN.

    Open a PDF file.
    Save it under a different name
    Try to delete a page
    You'll get this error:
    "One or more pages are in use and could not be deleted"
    I've had this billions of times now and the only solution that works 100% of the time is closing and re-opening the file. This leads me to believe it's something with "locking" the file while saving, but not unlocking it after done saving.
    GET THIS FIXED PLEASE because it's annoying LOADS and LOADS of people.
    As evident by the 7000+ search results for the exact phrase "One or more pages are in use and could not be deleted".
    And that's just the part of the userbase that actually reports the problem.
    There are several topics about this issue, some marked as "solved" erroneously.
    Note, I'm a paying customer, use Photoshop/Illustrator/Dreamweaver/Fireworks and Bridge during my daily work, and have had this issue for months and months across several different computers (two different workplaces, and at home) and have ran into this time and again, when all I want to do is cut a PDF into several smaller PDFs.
    Closing and re-opening your program because you're unable to fix this issue is NOT ACCEPTABLE. It's THE WORST kind of user experience, as this issue is the ONLY reason I use Acrobat at all, and it can't even do that.
    Cheers,
    - Dirk
    Ps.: Sorry, I'm very frustrated running into this time and again, and then having to wade through thick mud (your site is a UX nightmare) to report this issue, which has been report oodles of times on this board before.

    Yup.  I get this problem too.  And I'm posting in April of 2015, so I see this problem has existed a long time.  Acrobat "Pro" (ha ha) is full of stupid, annoying problems.  And the interface is clunky.  I'm going use PDF Split and Merge to remove the page I'm struggling with.  Ridiculous that Adobe Acrobat Pro cannot remove one page from a PDF file.  I am NEVER upgrading this product.  I am done with Adobe.

  • "is in use and could not be ejected"

    I want to eject an external hard drive (actually my time machine hard drive). Time Machine is finished but the drive activity has not and is sucking the speed out of my computer (as it always does when Time Machine is active).
    When I try to eject the hard drive, it tells me it "is in use and could not be ejected"
    The drive is not in use. All I have open is Safari, TextEdit and Word. All documents are on my main hard drive. How do I find out what program it THINKS is using it, or do I just have to give up and lose all my pages of information?
    This is actually a continuing problem. I hate to lose all my data to keep restarting the computer because of this drive.

    If you have the problem where you can’t empty the Trash or eject a disk because something is preventing you? Usually the reason is because some application has a file open, and thus you can’t get rid of the disk or trash the file. Then use What’s Keeping Me! What’s Keeping Me will identify the application that is preventing you from accomplishing your task. You can then use What's Keeping Me to quit, relaunch, or kill the problem application so you can get on with your business. http://www.hamsoftengineering.com/products/wkm/wkm.html
     Cheers, Tom

  • Error message: libsmime3.dylib is in use and will not allow update

    I tried to download the new firefox 5.0, for Mac OS10
    when I put it into the application folder the error message showed up:
    libsmime3.dylib is in use and would not allow new version to replace old
    I have restarted the computer several times and still the same

    I found [http://siliconchaos.blogspot.com/2010/08/installing-firefox-4-beta-2-error-on.html this blog post] when trying to look up that error. Looks like a common cause of the error is programs like Evernote, Dropbox or Cisco's AnyConnect VPN Client. Try disabling those (the blog post has instructions) if a simple delete/replace doesn't help.

  • Are there any apps which will allow local calling using data only that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?

    Are there any apps which will allow local calling using data only (not minutes, no extra charge) that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?  Just for random local calling.

    Yup.
    Here is a way you could solve this by adding an extra column and a small lookup table:
    The lookup table is here for the copying:
    0
    1
    k
    kilo
    2
    M
    mega
    3
    G
    giga
    4
    T
    tera
    5
    P
    peta
    6
    E
    exa
    7
    Z
    zetta
    8
    Y
    yotta
    In table 8 (the one on the left in the image) column A is where the values are. 
    B1=A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    this is shorthand for... select cell B1, then type (or copy and paste from here) the formula:
    =A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    select cell B1, copy,
    now select all the cells in column B, paste

  • Adobe standard 9 "one or more pages are in use and could not be deleted"

    I am an experience user from 4 to now 9 standard.  At work when extracting pages from a block scan I keep getting "one or more pages are in use and could not be deleted" it does not extract the pages but deletes some and leave some in the master document.  This happens on a regular basis and is so frustrating when trying to split a block document into individual ones. This is on adobe 9 professional... Process is 3500 pages document, open up the page tab to see the pages. Highlight the first and last page of the document you want to extract. Right click and select extract, tick the box delete after extracting.  Some times it works and a lot of the time I get the error above.  I have google’d this error and there seems to be no feedback to cover the reason as to why it creates this error and what does it mean?
    Thanks

    I use this feature once a month to extract / delete some 200 pages from an 800 page file. I found the release notes for 10.1.4 stated that this issue was fixed. I updated my Acrobat to the 10.1.4 release and i was still having the problem. I finally fixed it by disabling the Win XP compatability feature that i had enabled in the properties of the Acrobat executable. I had enabled this feature a couple of months ago as a fix to this specific problem, now it's not necessary.
    Environ: Win 7 32-bit and Acrobat X, 10.1.4.

  • Bought used and do not know administrator password?

    Bought used and do not know administrator password. Please help?

    This worked for me on a MacBook from late 2008
    1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter
    This will let you create a new admin account when you reboot your computer.

Maybe you are looking for

  • Connecting External Hard Drive to Time Capsule - In Finder but not Disk Utility

    Hi, So I've got a bit of a problem.  I have connected my LaCie 2d Quadra External Hard Drive into my Time Capsule via USB for the simple purpose of making it wireless, as well as allowing both my husband and I to access the files on it.  It works fla

  • X3100 and 1080p via VGA

    How can it be that the DELL Latitude D630 I got from work can output glorious 1080p on my Samsung FullHD LCD-TV via VGA, whereas my new Macbook 2.4 cannot? They both have the same video adapter (Intel GMA X3100)... Apple: can we still say "It just wo

  • WRONG iPhoto library, can't correct

    I upgraded my harddrive to a larger size, but before I did, I cloned it and rebooted to the new drive. However, Aperture still sees my iPhoto masters on the old drive (I renamed the old drive from MyDrive to MyDrive2, but Aperture still sees iPhoto i

  • Recursive parent, limit view

    Hello,I am trying to setup report in which people will be able to see their details - themselves & their subordinates. At the moment I am able to generate report as below (digit in second column shows level in hierarchy): Thing is that I would like t

  • Weblogic.appc (weblogic 9.1) giving error while using with jdk 1.6

    hi, I am trying to build my ear using jdk1.6 with weblogic 9.1. I am getting this error while doing weblogic.appc using my ant scripts. Could some one pls let me know the solution for this problem. [java] Created working directory: c:\windows\TEMP\ap