Losing session state after error page

Hi there,
I'm kinda new to all this so please bear with me.
I've created a little app in HTML DB using the Oracle 10g XE database. The app is now in production and working ok. I do however have one issue that I am unable to resolve. The problem is this.
If the user encounters an untrapped error on a page, e.g. they type in more data than the database field allows, then an error message will be displayed on a separate page, with an OK button. When they click the OK button, they are taken back to the page they came from, but any data they had typed in is gone. As you can imaging this is quite frustrating for the user. I know that this feature does work correctly (i.e. your data is retained), as I've seen it working on one of the demo applications. However, I'm at a loss at to what controls this behavior. Does anyone have any idea what setting I might need to change to get this working?
Additional Info: When I call this page initially, I do clear session state for the page I am going to (using the f?p syntax), as I want the page to be blank when the user has clicked on the create new record button. Perhaps this in causing the session state to be lost when I navigate back there after being on the error page. If this is the case is there some way I can stop it from clearing session state for the page it is returning from the error page?
Regards
Joe Kennedy

Scott,
I have created the application on online as you suggested. I was unable to login to the application with my username and password so I deleted the login page and security scheme and accepted the default login page. The really wierd thing is it works as expected, i.e. when I get the error and click ok, the data is still on the page as I entered it. That means there must be something wrong with my setup on my PC, but I don't know what. I will try dropping and recreating the appication from scratch to see if that will fix it. Could it have something to do with the security scheme? That is the only thing I changed with the version I created online.
Thanks
Joe.

Similar Messages

  • Nothing set in session state after upgrade to 4.0.2

    hi -- I just patched up to 4.0.2 from 4.0.1. When I run my applications (any of them) nothing is showing
    in session state -- application items or page items. I don't think it's just an issue w/ the "session"
    reporting functionality because I'm also getting errors that indicate that values are not being set.
    Unfortunately, I did not export applications before the upgrade, or back up the database (though we
    have one from last night...).
    Help? Just want my apps working again!
    Thanks,
    Carol

    hi -- Well, you're on target:
    - I am using custom authentication (and apps that don't use it seem to work fine) - & -
    - The applications in question work fine when run directly.... that is, not via the developer.
    Unfortunately, I'm still having the problem after applying the patch. Actually, just once it did
    work... this was after I first applied the patch: I completely rebooted my machine and when I
    first went into the developer and ran it w/o doing anything else first, I didn't have the problem. Every
    time thereafter I have had the problem.... including after rebooting again.
    I have no reason to suspect the patch didn't work... very simple patch, no errors.
    For what it's worth... I can't say that I entirely tracked everything in the thread you pointed me to
    about sessions getting mixed up, but it does look like the session ids for developer vs the applications
    I'm running in developer are consistent throughout (at least, based on what I see in the URL). Is it
    normal that when I run an app via the builder, that the session_id that shows up on the login page
    is the developer session_id? A new session_id then shows when at the home page of the application...
    Any other ideas? Absolutely nothing is showing up in session state, anywhere. I'm very frustrated....
    I'm almost at the point where I want to use our latest database backup and revert back to 4.0.1. It doesn't
    have what I (apparently) need to get master/details working as I need them to, but at least I can proceed with
    other development!
    Hopefully there's an easier solution.
    Thanks,
    Carol

  • Application Items/Session State Values and Page Branching

    I have users coming into a specific page in my application, passing in a value on the url that sets the value of an application item, where a validation routine occurs. If their session validates, I want to send them to one page, if it does not, I want to send them to a login error page.
    During validation, I am setting the values of several application items so that these values can be saved and used throughout their session. The values appear to be setting correctly. I am concerned that setting the application items may not be limiting these values to a particular session. So, I have also tried setting the setting session state variables with code like:
    apex_util.set_session_state ('F203_REQ', vReqID);
    I found it curious though when I ran this page, not trying to branch so I could check session state, these values showed up as being application items and I saw nothing under session variables.
    The problem I am having is that once validated I don't know how to branch to these other pages. I have tried adding some javascript in the header to force a page submit so that I could use a branch setup on the page. However, when it comes time to evaluate the branches (it's using one of the application item values I set earlier), I'm getting an error that no branch has been provided. Further research suggests the application item values are being cleared on the page submit.
    So, (1) I either need to know how to preserve those values on submit so the page branch works or (2) I need to branch to the new page without using a page submit and instead doing that in a some code (assuming submit is clearing application item values). I have not been able to find an example of how to do this in code. If there is a way to do this in code, will the application item or session state variable values be retained? I will need these values to be available to the user throughout their session.
    Thanks for the help,
    Steve

    Steve,
    I am concerned that setting the application items may not be limiting these values to a particular session.They are set in the current session only.
    It is hard to know what you are doing exactly without seeing it. If you set up an example on apex.oracle.com we could could address one specific question at at time.
    Scott

  • Session State Protection Error

    Hello All,
    I have recently made some manual changes in my data tables for my application. When I went to test my changes I received a new error I have never seen.
    Session state protection violation: This may be caused by manual alteration of protected page item 57299492617521335525. If you are unsure what caused this error, please contact the application administrator for assistance.
    Contact your application administrator.
    I have never seen this error. Can someone help?
    Thanks
    Ryan

    Did you delete some columns? Drop some tables? I think this is something related to that... if true, then you should manually go to each page and verify your tables, columns, procedure calls, etc....
    User: 901292 (did your family gave you that name? Amazing)....
    Total Posts:     45
    Total Questions:     27 (25 unresolved)
    Start closing topics and rewarding people with points.
    Edited by: Vitor Rodrigues on 13/Fev/2012 15:39

  • Howto call the @Remove method of a stateful session bean after JSF page ...

    I use EJB3, JPA, JSF in my web application. There are 2 database tables: Teacher and Student. A teacher can have many (or none) students and a student can have at most 1 teacher.
    I have a JSF page to print the teacher info and all his students' info. I don't want to load the students' info eagerly because there's another JSF page I need to display the teacher info only. So I have a stateful session bean to retrieve the teacher info and all his students' info. The persistence context in that stateful session bean has the type of PersistenceContextType.EXTENDED. The reason I choose a stateful session bean and an extended persistence context is that I want to write something like this without facing the lazy initialization exception:
    <h:dataTable value="#{backingBean.teacher.students}" var="student">
        <h:outputText value="${student.name}"/>
    </h:dataTable>Because my session bean is stateful, I have a method with the @Remove annotation. This method is empty because I don't want to persist anything to the database.
    Now, my question is: How can I make the @Remove method of my stateful session bean be called automatically when my JSF page finishes being rendered?

    Philip Petersen wrote:
    I have a few questions concerning the EJB remove method.
    1) What is the purpose of calling the remove method on stateless session
    bean?There isn't one.
    >
    2) What action does the container take when this method is called?It checks that you were allowed to call remove (a security check) and then
    just returns.
    >
    3) What happens to the stateless session bean if you do not call the remove
    method?Nothing
    >
    4) Is it a good practice to call the remove method, or should the remove
    method be avoided in the case of stateless session beans?
    Personally, I never do it.
    -- Rob
    >
    >
    Thanks in advance for any insight that you may provide.
    Phil--
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Losing Sessions state

              We are having a problem with being able to keep track of HttpSessions. Here's
              the two scenarios where this occurs:
              1. We have an JSP/Servlet application hosted on Weblogic 6.0 One of the frames
              within the JSP page it opens a URL on a IIS content server on a different domain
              serving up static content. At some point the static content redirects to a URL
              back on the Weblogic server, but it can't find the user session. If the Weblogic
              server and the content server are on the same domain it works fine but because
              of operational considerations this is very hard to do.
              2. A third party application (blackboard) running on Weblogic opens a URL (servlet)
              in our Weblogic application, again two servers on different domains. This servlet
              creates a session but the next time the blackboard server opens a URL it can't
              find the same session.
              Could someone explain why this is taking place is the session is maintained through
              cookies. I haven't seen this functionality before in dealing with sessions in
              other non J2EE applications. Is there a solution other than putting the servers
              on the same domain?
              -Matt
              

    gfbn
              matt heaton <[email protected]> wrote in message
              news:3ade23be$[email protected]..
              >
              > We are having a problem with being able to keep track of HttpSessions.
              Here's
              > the two scenarios where this occurs:
              >
              > 1. We have an JSP/Servlet application hosted on Weblogic 6.0 One of the
              frames
              > within the JSP page it opens a URL on a IIS content server on a different
              domain
              > serving up static content. At some point the static content redirects to
              a URL
              > back on the Weblogic server, but it can't find the user session. If the
              Weblogic
              > server and the content server are on the same domain it works fine but
              because
              > of operational considerations this is very hard to do.
              >
              > 2. A third party application (blackboard) running on Weblogic opens a URL
              (servlet)
              > in our Weblogic application, again two servers on different domains. This
              servlet
              > creates a session but the next time the blackboard server opens a URL it
              can't
              > find the same session.
              >
              > Could someone explain why this is taking place is the session is
              maintained through
              > cookies. I haven't seen this functionality before in dealing with
              sessions in
              > other non J2EE applications. Is there a solution other than putting the
              servers
              > on the same domain?
              >
              > -Matt
              

  • ??? On Session State

    Background info:
    I have a field that could have two different types of input, one would be numeric (such as a PK) the other input to it would be text. To ensure the Automated Row Fetch always pulls the PK properly I am using a computation ON LOAD to turn the text into numeric so that when the Automatic Page Load runs it will always pull from the database based on the PK.
    This part is working properly the problem is that I have an item that is a select list and it unforunately has an dynamic LOV with a query of select a,b from table_xyz where value = :session_state_of_pk
    This is causing me a problem because it is referencing the "text value" and not the numeric value. Even though when I change my page view to "Events" the page rendering shows computations before Items. I even did a Pl/sql process ON LOAD to insert the :session_state value to a debug table.
    So my question is ... If the pl/sql on load process is holding the correct value then why is the LOV of a page item not using the correct value??
    This is the error I get on the page Item that is an LOV:Error: ORA-01722: invalid number performing List of Values query

    Vikas, I have done this and here are the results:
    .01: S H O W: application="110" page="103" workspace="" request="" session="6865688852817169"
    0.01: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: NLS: CSV charset=WE8MSWIN1252
    0.02: ...NLS: Set Decimal separator="."
    0.02: ...NLS: Set NLS Group separator=","
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Setting session time_zone to dbtimezone
    0.02: NLS: Language=en-us
    0.02: Application 110, Authentication: CUSTOM2, Page Template: 724212235889446
    0.02: ...Supplied session ID can be used
    0.02: ...Application session: 6865688852817169, user=JRP22
    0.02: ...Determine if user "JRP22" workspace "1786101047996118" can develop application "110" in workspace "1786101047996118"
    0.03: Session: Fetch session header information
    <b>0.03: Saving g_arg_names=P103_IP_ID and g_arg_values=077.243
    0.03: ...Session State: Save Item "P103_IP_ID" newValue="077.243" </b<"escape_on_input="N"
    0.03: ...Metadata: Fetch page attributes for application 110, page 103
    0.03: Fetch session state from database
    0.04: Branch point: BEFORE_HEADER
    0.04: Fetch application meta data
    0.04: Authorization Check: "6961000503551770" User: "JRP22" Component: "PAGE"
    0.06: Computation point: BEFORE_HEADER
    <b>0.06: ...Perform computation of item: P103_IP_ID, type=QUERY
    0.06: ...P103_IP_ID=select ip_id from IP where IP = :P103_IP_ID;
    0.06: ...Session State: Saved Item "P103_IP_ID" New Value="32"
    0.06: Processing point: BEFORE_HEADER
    0.06: ...Process "TEST DB INSERT SESSION STATE P103_IP_ID": PLSQL (BEFORE_HEADER) insert into t (col1,col2,tstamp) values ('p395',:p103_ip_id,systimestamp);</b>
    0.08: Show page template header
    0.09: Computation point: AFTER_HEADER
    0.09: Processing point: AFTER_HEADER
    <b>0.09: ...Process "Fetch Row for IP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:IP:P103_IP_ID:IP_ID
    </b>0.10: ...Process "Fetch DNS_NAME To Buffer": PLSQL (AFTER_HEADER) :P103_DNS_NAME_BUFFER := :P103_DNS_NAME;
    0.11: ...Session State: Save Item "P103_DNS_NAME_BUFFER" newValue="3657" "escape_on_input="N"
    0.11: ...Process "Get Next or Previous Primary Key Value": GET_NEXT_OR_PREV_PK (AFTER_HEADER) #OWNER#:IP:IP_ID::IP::P103_IP_ID:P103_IP_ID_NEXT:P103_IP_ID_PREV::::P103_IP_ID_COUNT:
    0.13: ...Session State: Save Item "P103_IP_ID_NEXT" newValue="33" "escape_on_input="N"
    0.13: ...Session State: Save Item "P103_IP_ID_PREV" newValue="31" "escape_on_input="N"
    0.14: ...Session State: Save Item "P103_IP_ID_COUNT" newValue="32 of 3434" "escape_on_input="N"
    0.14: ...Process "Fetch MAC_ADDRESS": PLSQL (AFTER_HEADER) select mac_address into :P103_MAC_ADDRESS from mac_address where IP_ID = :P103_IP_ID;
    0.15: ...Session State: Save Item "P103_MAC_ADDRESS" newValue="00-16-3G-33-25-33" "escape_on_input="Y"
    0.15: ...Process "Fetch Container_Type": PLSQL (AFTER_HEADER) select container_type into :P103_CONTAINER_TYPE from container_type where container_type_id = :P103_CONTAINER_TYPE_ID;
    0.16: ...Session State: Save Item "P103_CONTAINER_TYPE" newValue="BASE_UNIT" "escape_on_input="Y"
    0.16: ...Process "Populate Hidden Assign value": PLSQL (AFTER_HEADER) :P103_ASSIGNED_BUFFER := :P103_ASSIGNED;
    0.16: ...Session State: Save Item "P103_ASSIGNED_BUFFER" newValue="Y" "escape_on_input="N"
    0.16: Authorization Check: "4769021032313739" User: "JRP22" Component: "tab"
    From Session State after the page has loaded:
    Application Page Item Name Display Item Value Status
    110 103 P103_IP_ID Hidden 32 U
    Vikas: From the debug info you can the value comes in with the the IP ( I have removed the first two octets from the debug information) "Saving g_arg_names=P103_IP_ID and g_arg_values=077.243"
    A few steps later a computation is performed and the IP is chagned to an IP_ID which the value is 32, this is correct at this point.. Following that there is a pl/sql insert of :P103_IP_ID and that value is 32 inside the db table.
    Here is what it looks like on the screen:
    <b>Any ideas why the Select List LOV does not like this value?</b>
    Here is the actual LOV query:
    select dns_name,dns_name_id from dns_name where ip_id = :p103_ip_id
    Message was edited by:
    Justin P

  • Session state consistency - how does APEX keep session state across pages

    I would like to know how the APEX develper tool keeps session state from being overwritten across mutiltple pages in the same Session. Because this is difficult to explain I'll use an example from withing the APEX dev tool
    For Example:
    1. I navigate to the page (4150) thet allows me to edit my Page 880 [Window 1]
    2. I now do a Cntrl^N to Open a New Window in the same session (this opens on the same Page 880 in the new window) [Window 2].
    3. In Window 1, I click an item to update ie I want to put a comment on the Unconditional Branch so click this to go to the Update page. I see the F4000_P4313_ID is passed in the URL (ie the context, UID of the Branch).
    4. In Window 2, I change the page to 881 - ie this is overwriting my Session State variables for page 880 with page 881.
    5. I click an item in Page 881 to update ie I want to put a comment on the Unconditional Branch so click this to go to the Update page. I see the F4000_P4313_ID is passed in the URL (ie the context, teh UID of the Branch).
    6. In Window 1 (the Page 880), I add a comment to the Branch and 'Apply' changes. On returning to the Page the context has changed from 880 to 881 (as expected as Window 2 had overwritten the session state). Slightly confusing for the user as they did go from Page 880 not 881 but ok
    What intrigues me is how the Edit Branch page applied the update to the correct branch [good !]. Why weren't the Branch Session state variables (ie the Branch for Page 880) overwritten with the Branch Session state variables for the Branch from Page 881 ?
    Both navigations go to the same Page passing the UID of the branch, hence I would of thought the last navigation is the one that would be persisting (ie from Page 881 Window) ?
    Any tips on preventing users updating the wrong record because of the Session State being overwritten would be most welcome.
    Look forward to hearing from you.

    Let me take a shot at explaining this.
    Session state is stored in Oracle database tables. When a APEX page is rendered, those tables are read and the HTML is sent to the browser. When that page is submitted, all the HTML form inputs on the page are saved back into session state over-writing any existing values for that session
    So, in your example, since Page 4313 has the hidden page item (the "GUID" of the branch), it doesn't matter if any other window has the same page open with some other GUID. Each page is a self-contained "unit" which has all the information necessary to properly process that page when it is submitted.
    Think of it this way...in your example, when you have windows 1 and 2 open (window 2 was opened after window 1), go back to Window 1 and click the browser's Reload/Refresh button. Instead of refreshing the same page (branch 9000000), you will find that it will load branch 8000000! This is because session state is read from the database and when Window 2 was rendered, it has set F4000_P4313_ID in session state to 8000000.
    Hope this helps.

  • Session state protection disables running of pages without argument

    Hi all,
    Shared Components=>Security=>Authentication Schemes=>Application Express - Current
    I did the folowwing steps :
    Shared Components=>Security=>Session State Protection=> Set Protection button
    in the folowwing screen press Enable followed by next
    in the next screen Press the Enable Session State Protections
    in the page Shared Components>Session State Protection>Session State Protection by Page
    both page 0 and 1 are unrestricted
    stil I can't run my app
    page 1 error :
    No checksum was provided to show processing for a page that requires a checksum when one or
    more request, clear cache, or argument values are passed as parameters.
    page 0 and 1 have no items
    page 1 has one region of type list
    and uses the list found on page 0 but uses a list template override od Pull Down Menu with
    Image the same list on page 0 has a list template of DHTML Menu with Sublist
    I am at a loss the nly solutions is to put session state protection off all together
    please help
    Kr
    Martin

    No problems if you run the app directly likes so :
    http://apex.oracle.com/pls/otn/f?p=29691:1
    when you login through apex.oracle.com
    WS : martijnke
    login guest
    passw : apex_demo
    then the error occurs
    it seems that from the buikder I can't run any page that does not have any parameters
    even if I make those pages unrestricted
    Martin

  • Delete session after error 023 and WP has reached abap/heaplimit = 40000000

    Hello,
    I had upgraded my system's kernel to 7.21 401 last weekend and started getting below errors.
         "Delete session after error 023" and "WP has reached abap/heaplimit = 40000000"
    When I change the abap/heaplimit parameter to 6000000000 program runs without error.
    This parameter value is out of max value of this parameter.
    I donot want to give the parameter over max allowed value.
    I also changed dbsl patch to 7.21 418 but no solution.
    I searched through sap notes and scn but could not find an answer to my problem.
    What could be the relation between kernel upgrade and this parameter?
    Why the program was working with Kernel 7.21 316 and not working with 7.21 401?
    I inserted SM21 and developer trace file below.
    Can you help about the issue, please?
    Thanks and Regards,
    Yuksel AKCINAR
    SM21:
         11:56:52 DIA  010 200 USER1 TX01          R4  7 Delete session 004 after error 023
    dev_wx:
    L Fri Mar 13 11:52:31 2015
    L  EVTSDL: Begin of FORM PROCESS_EVENT_TRIGGERED_JOBS
    L  EVTSDL:    Event raised: SAP_END_OF_JOB
    L  EVTSDL:    Event parameters: SLCA_LCK_SYNCHOWNERS            10523100
    L  EVTSDL:    Begin of FORM SELECT_EVENT_TRIGGERED_JOBS
    L  EVTSDL:      Eventhistory > There are no active profiles of criteria type 'EVTHIS'
    L  EVTSDL:    End of FORM SELECT_EVENT_TRIGGERED_JOBS
    L  EVTSDL: End of FORM PROCESS_EVENT_TRIGGERED_JOBS
    L  TIMESDL: CLEANUP_MUTEX try to grasp for server:
    L  TIMESDL: arq01_ARQ_10
    L  TIMESDL: CLEANUP_MUTEX not grasped (is busy)

    A Fri Mar 13 11:56:35 2015
    A  WP has reached abap/heaplimit = 40000000 bytes

    A Fri Mar 13 11:56:39 2015
    A  SelMemClass: heap quota (DIA) exceeded 2000000000 2000030480

    A Fri Mar 13 11:56:40 2015
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: level LEV_RX_PXA_RELEASE_MTX entered.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_MTX completed.
    A  ** RABAX: level LEV_RX_COVERAGE_ANALYSER entered.
    A  ** RABAX: level LEV_RX_COVERAGE_ANALYSER completed.
    A  ** RABAX: level LEV_RX_HOTSPOT_TRACE entered.
    A  ** RABAX: level LEV_RX_HOTSPOT_TRACE completed.
    A  ** RABAX: level LEV_RX_SAVE_SHMLOCKS entered.
    A  ** RABAX: level LEV_RX_SAVE_SHMLOCKS completed.
    A  ** RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    A  ** RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    A  ** RABAX: level LEV_RX_ROLLBACK entered.
    C  Call to DbSlRollback96 while DBIF already active in DbSlExeRead96
    B  ***LOG BZY=> unexpected return code 1 calling DbSlRollback [dbcon        3820]
    B  ***LOG BYJ=> database function ROLLBACK for connection R/3 failed [dbcon        3823]
    B  *** ERROR => DISTRIBUTED_TA_FAILED:
    [dbcon.c      2029]
    B  {root-id=0050569300301EE4B2AC40086FE743BF}_{conn-id=00000000000000000000000000000000}_0
    B  00: name=R/3, con_id=000000000, state=ACTIVE      , tx=NO , bc=NO , hc=NO , perm=YES, reco=NO , info=NO ,
    B      timeout=000, con_max=255, con_opt=255, occ=NO , prog=
    M  ***LOG R39=> ThIRollBack, db_rollback ( 016384) [thxxhead.c   14956]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThIRollBack: db_rollback (step 4, th_errno 18, action 2, level 1) [thxxhead.c   11560]
    M  {root-id=0050569300301EE4B2AC40086FE743BF}_{conn-id=00000000000000000000000000000000}_0

    Hi Yuksel ,
    From the trace file it seems  it is a parallel processing Jobs . Has anything changed  ( In terms of number of parallel background work  process ) in this Job .
    If this relates to only one job  dont think this  increased memory could be because of the kernel patching .
    The only thing i could think of is the following ( 1713986 - Installation of kernel 721 (EXT) ) - The note is valid for 721 als
    5.6 Dynamic work processes (NetWeaver 7.00/7.01)
    The 720 and 721 kernel versions support the dynamic increase of the number of work processes at runtime. However, this function is not fully compatible with NW 7.00 and NW 7.01. To prevent errors from occurring, deactivate it by setting the following parameters:
    rdisp/wp_no_restricted = 0
    rdisp/configurable_wp_no = 0
    rdisp/dynamic_wp_check = FALSE
    rdisp/wp_max_no = Sum of:( rdisp/wp_no_dia + rdisp/wp_no_vb2 + rdisp/wp_no_btc + rdisp/wp_no_vb + rdisp/wp_no_spo + rdisp/wp_no_enq ).
    Mind that rdisp/wp_max_no has the default value DEFAULT, which will add two unwanted dynamic processes if not set the number of configured, classical wp types.
    Check the parameters and try again after a restart .
    Believe have seen in many projects  functional consultants complaining  the issue is after the patch upgrade . Does this fall in that category
    Thanks ,
    Manu

  • No error page after runtime include

    Hi
    I encountered the problem that my error-page is not displayed when a runtime-exception occures in a jsp.page after having made a runtime-include of another jsp-page
    (like <jsp:include page='../rt_includes/header.jsp' flush='true' />).
    If I take away the include-statement, the error page is displayed correctly. The problem seems to be that printing the content of the included page to the out-buffer prevents the error page to be displayed properly. Which is the best solution to avoid this problem?
    - Thanks for any help

    Hi,
    The problem you have just described comes in JSP 1.3 specification. This problem was solved in JSP 1.4 specification, Most of the application server now support JSP 1.4, check out with your application server documents. Which server are you using.

  • How to update session state from form field values without submitting page?

    Hi,
    I am new to Oracle APEX. I am using Oracle Apex 4.2 on Oracle 11g release 2. The problem is that when I am entering data on a form, when I enter a value in one field and move to the next field, how can I use the value of first field in the validation procedure of next field? I know that when we enter data in fields, the session state is not updated with these values until we submit the page... right... but I have seen that if there is a control of List box type, then Apex gives an option "Action When List changes" where we can choose option to update corresponding session state field with the value of list box item, without submitting the page.
    Now my questions is why this option is only available for List box items? why not for other item types like Text box, Check box,... ? can someone please help me with this?
    (the issue with update of session state depending on page submitting, is that we need a complete network round trip from client to server in order for it. However if we can update session state variables without submitting page, then we can avoid this network traffic).
    Any help will be greatly appreciated. Thanks in advance.

    Create a dynamic action on change and run a PL/SQL process there with the following code:
    BEGIN
       NULL;
    END;Page items to submit > your item.
    This will set the session state without submitting the form.
    Further examples here:
    http://apex.oracle.com/pls/apex/f?p=31517:229
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Custom Tabular form - Session state values disappear

    Hi,
    I have a custom tabular form page using apex_item and apex_collections. I am using the apex_collection to store the values in memory in order to avoid the data loss in session state. The page is working fine after a validation failure and it shows the values on the second report (as advised for custom tabular forms).
    In this, some of the rows have clob value which needs to be edit on a rich text editor. Since apex_item does not provide a solution to have rich text editor, I have to branch to another page on an Edit link for the CLOB data using a modal window. However When I return back from the modal page, the values disappear from session state, and the validation (using htmldb_application.g_fxx arrays) does not take place.
    Is there any workaround to overcome this issue?
    Apex version: 4.1
    Thanks in advance.
    Natarajan

    Thanks Daniel for your reply.
    Actually its an interface with a custom tabular form on page 1 with apex collections and rich text editor on page 2. Since it is not possible to have the rich text editor, I need to have it in another page (I could have it the same page, that is the way I am trying now) however I open the next page as a modal window.
    I have a link on the tabular form, so that the clob content is opened in the rich text editor on the next page. After the edit, I update it to the same collection and go back to the tabular form page and refreshes the report. It works fine, but causes trouble to the data entered on the other columns in the custom tabular form.
    I have now deviated to another work and put this on a hold. If my explanation is still not clear, I will create the same page in apex.com to simulate the error.
    Thanks again.
    Natarajan
    Edited by: Nattu on Mar 14, 2012 11:35 PM

  • Problem with application item and session state

    Okay, let's see if I can explain this problem coherently.
    I have a small app (one page), with an application item, F_WHERE_CLAUSE.
    This page has three regions in which there are items that the users can populate for search conditions. A couple of these items are "select list with submit" (I still need to upgrade to the AJAX method, I know). There is another region which has one hidden field, called P1_WHERE_CLAUSE. This field is defined to "Always, replacing any value in session state..." with source type of "Item (application or page.....", and a source value of F_WHERE_CLAUSE with no default value.
    I have a button called "Search" which submits the page and fires a PL/SQL process which builds a where condition based upon the other page items and stores the value to the application item F_WHERE_CLAUSE (correctly).
    For testing, I've made the P1_WHERE_CLAUSE field visible so that I can see what's going on. I've also clicked the debug and session buttons to help trace this. After I click the "Search" button and the page submits, debug shows:
    0.02: ...Session State: Save "P1_WHERE_CLAUSE" - saving same value: "1=1"
    followed later by:
    0.05: ...Session State: Saved Item "F_WHERE_CLAUSE" New Value="lower(primary_class) = 'rock' and country = 'Spain'"
    The field P1_WHERE_CLAUSE displays with the correct search criteria as signified by F_WHERE_CLAUSE above. However, If I click the "session" button to view the session state values, P1_WHERE_CLAUSE shows up as:
    P1_WHERE_CLAUSE Textarea    1=1    U while F_WHERE_CLAUSE displays the correct value still.
    The reason this "problem" came up, is that this page also has three SQL report regions which use &P1_WHERE_CLAUSE. for the where condition. While they display the correct results on-screen, each report region also has the "Export to csv" enabled, and the export seems to be using the "1=1" condition (from the "session" window) instead of the search criteria that the on-screen region is using (F_WHERE_CLAUSE and the displayed P1_WHERE_CLAUSE), resulting in a retreival of all records.
    Anybody have any idea what's going on and why, and how to get the csv export to use the correct value for the where condition?
    Thanks,
    Bill Ferguson

    It appears the "Export to CSV" functionality requires the item value to be set in session state. The P1_WHERE_CLAUSE item value never gets saved to session state. The page is rendered and the value is put in the item on the page but until you submit the page session state doesn't know what P1_WHERE_CLAUSE is.
    Create a before header computation or process to set the value of P1_WHERE_CLAUSE (which will save it to session state). It is interesting that the report regions didn't need to look at the value in session state but the "export to csv" does.
    --Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Session State Protection - Arguments must have Checksum - Help Required

    Hi everyone,
    I am using apex 4.0 and have set:
    Session State Protection = True
    Page Access Protection = Arguments must have checksum
    Application Item Protection = Cecksum required - Session Level
    Page Data Entry Item Protection = Cecksum required - Session Level
    Page Display-Only Item Protection = Cecksum required - Session Level
    On pages which contain a Interactive report the calls to other pages to update and or delete a record passing the PK of the record work OK.
    I have set these as follows:
    In the Interactive report LInk Colomn --> Link Attribute = onclick="new top.Ext.apex.PopupWindow( { url: this.href, title: 'Edit Classification Details', width: 530, height: 500, listeners: {'success': gReport.search} } ).show(); return false;"
    Target = Page in this Application
    Page = 302Item = P302_IDCLASS
    Value = #IDCLASS#
    Page Checksum = - User Default -
    The problem is on the "Create new record" button which is located on the Interactive report page. I have defined the button as:
    Button Attributes = onclick="new top.Ext.apex.PopupWindow({ url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:302::::', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
    Action when button click = Redirect to Page in this Application
    Page = 302
    Clear Cache = 302
    When I click the button I get the following message:
    Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrator for assistance.
    If I change the Button attributes to be:
    onclick="new top.Ext.apex.PopupWindow({ url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:::::', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
    It works OK, bu the page items are not clear.
    Could someone please explaing to me what am I doing wrong so I understand my mistake ?
    Thank you
    Daniel

    Here's an interesting situation. I have been having great results with the prepare_url function, until I needed to pass a column value from a report into a popup.
    Originally, in the Column Link --> URL in the Report Attributes I had this. This worked great when there was no session state protection enabled.
    javascript:popUp('f?p=&APP_ID.:17:&SESSION.::&DEBUG.:17:P17_EVENT_LOG_ID:#EVENT_LOG_ID#','450','375');When I enabled session state protection and changed the URL link to this
    javascript:popUp('&VW_EVENT_LOG.','450','375');and then created an application item and computation in order to pass a checksum along
    APEX_UTIL.PREPARE_URL (
      p_url => 'f?p=&APP_ID.:17:&SESSION.::&DEBUG.:17:P17_EVENT_LOG_ID:#EVENT_LOG_ID#',
      p_checksum_type => 3
    );the checksum seems to get passed fine, but the column value for the EVENT_LOG_ID is being concatenated to the end of the checksum instead of being passed as the value for P17_EVENT_LOG_ID. I also noticed that the clear cache page (17) looks like it is also being attached to the beginning of P17_.., but I'm not sure if that's to be expected or not.
    It took me a while to figure it out, but when I started looking at the error message closely, I could see that the checksum is identical except for the last two digits, which coincidentally are the same as the ID for this record.
    The checksum computed on the request, clear cache, argument names,
    and argument values (17P17_EVENT_LOG_ID [C6161B29B4C078F68DCF430133407754] ) did not match the checksum
    passed into the show procedure (C6161B29B4C078F68DCF43013340775490). Any thoughts on how to pass a column value with a checksum to a popup window?
    Thanks,
    Joe

Maybe you are looking for

  • Multiple condtions in a single if Statement in .rtf templete of Bi Publishe

    Hi , I want to use a single if statement with multiple condition . For Example : If :Parameter1=10 and Parameter2=10 and Parameter3=30 then < ' mseesge '> end if ; Any body Please suggest me how can i do it in the .rtf . Thanks, Mike . Edited by: use

  • Ipad no longer connects to wifi at home

    My iPad (first generation) no longer connects to my wifi network at home. I don't have the possibility to "forget this network" in the options from the menu. The only thing I can do is re-typing the router password, which I know is correct, but still

  • Importing Video TS

    I converted my band's performance from vhs tape to dvd on a stand alone Pioneer dvd burner. How do I import that video (and audio) into iMovie for editing? G4 17" powerbook   Mac OS X (10.4.3)   G4 17" powerbook   Mac OS X (10.4.3)  

  • Changing of focus

    There is a frame with an open option in menu bar for opening a particular form. This frame is allowing user to open the form twice and when the user opens the form 2nd time it is opened in Read-only mode and provides the feedback that the form is in

  • Illustrator CS6 update keeps failing

    Hi Having problems, installation keeps failing Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DF024, DW063 ... WARNING: DS012, DW016 ... -------------------------------------- Summary ------------