How to clear items / cache in Apex 4.2

Can someone explain how clearing cache or session state processes are supposed to work in Apex 4.2?
I have an application that allows the user to look up records by last name or by social security number
A look up by SSN is one to one and takes the user to a detail page
A look up by NAME displays a list of names where the user can select a user and display the same detail page
The problem is that the application retains the social security number from one look up to the next. So it keeps displaying the same record
even if you enter or select a different SSN.
I've tried creating session state processes to either clear specific items or clear the cache on a page, but nothing seems to work.
Maybe the problem is that I'm not understanding the options for creating these; it says things like  on load before headers, on load after headers, on submit before calculations, after calculations, etc
The application is read only.  Logically to me, if you are linking from one page to another you need to save the value in the item  but if you are doing a  new search you need to clear it
So I thought that on the detail page I should clear the items, or clear the cache on the page after submitting
But can't get this to work

heres an example
Page 1 has items P1_SSN and P1_NAME  as well as hidden items P1_TEXT and P1_TEXT2
The button affiliated with p1_NAME takes the user to page 2 that displaces a list of match names. it has a link which goes to page 3 where P3_SSN matches #SSN#
The button affiliated with p1_SSN takes the user directly to page 3 where p3_SSN matches #SSN#
If I log in and search by SSN first, when I get to page 3 I have the correct record
If I look up by name , I get the list and select a record by SSN I still have the correct record
then I go back to Page 1 and search by SSN, entering a new SSN. I always get what ever record I previously pulled up when searching by name and selecting from the list
On Page 1 , I have a process that says on load before regions clear items and I list all the items
Similarly  on page 3 I have a process after submit and calculations that clears the items
When creating these processes it asks to list the items, separated by comma. The only place to enter PL/SQL is under conditions, this is not conditional on anything, it should always clear the cache.
I use this same logic on different pages in the same application - different tables but same flow. It works there. I don't see why it doesn't work here

Similar Messages

  • How to clear a session in apex ?

    Hi,
    How to clear a session in apex other than using clear cache option?
    Thanks,
    Anoo.

    Anoo,
    check the APEX_UTIL Package, there you'll find functions like clear_page_cache, clear_user_cache, clear_app_cache.
    This could be what you are looking for.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • Clear Item Cache after validation failure

    Hi Guys,
    I have a page validation that fires when two items (P6_LOCATOR_ID & P6_NEW_LOCATION) are equal which is working OK.
    The field validation is on the P6_NEW_LOCATION field.
    When this validation is true, I want the validation message to appear as it is now, but I want the P6_NEW_LOCATION to be reset to null or the cache for that item cleared.
    I cant run it as a page process after computations and validations because it never gets passed the validations to initiate. I have also tried creating a clear item cache process after the button that initiates the validation is pressed, but again that doesnt work.
    Can anyone think of another way that it can be done?
    Thanks
    Chris

    VC wrote:
    Cashy wrote:
    Thanks for that VC,
    I am getting following error now when it is running
    Error ERR-1002 Unable to find item ID for item "2" in application "195".
    I have set :P6_LOCATOR_ID and :P6_NEW_LOCATION = 2 as the test. When I try to set them both to other numbers i.e. 1,3,4 etc the same error message is returned with the item in the quotes changing for each.
    when you are setting the value use assignment operator
    :P6_NEW_LOCATION := 2
    I am guessing that it might have something to do with the page branching back to itself after the validation is fired?
    Thanks
    HI VC,
    Thanks for that. I am not setting the value of :P6_NEW_LOCATION programatically, I am just putting the value 2 into the field item and pressing the 'submit' button behind which the validation is running.
    Thanks for your help

  • How to clear app cache on itouch (3.1.3 iOS)

    can someone help with directions on how to clear app cache in 3.1.3?  btw...i don't want to reset since it will result in lost apps that no longer offer versions for 3.1.3

    All you can do is reset the iPod. 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.
    For the old-app problem. Delete any newer apps from your iTunes library. Then transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    Just make sure that you do not update those apps in your iTunes library.

  • How to clear the cache files in folder Temporary Internet Files

    When one user opens files such as pdf. or doc. from Portal,  the same file will be downloaded into the Temporary Internet Files folder. if another user copied the files out of the Temporary Internet Files folder from this computer and save to someplace else, then we face one security problem.
    So my question is: How to clear the cache files in folder Temporary Internet Files??  Can we delete the files automatically when close the files in Portal??
    or is there some ways to make encrypty???
    Thanks very much!

    Hello,
    this is a basical security problem which should be resolved by the OS standard security setup . No other user should have access to the temporary file folders in the personal directory. The user account must be secure. Normaly your security problem should not be a problem if basic security exists on the clients.
    You can resolve this problem if every user has his own account on the client
    The users having no administration permissions on the clients
    The folder for the temporary internet files is placed in the personal profile folder of the user account.
    On default no other user has access rights to you personal folder, this means the client OS is setup correctly.
    You can setup the IE that no temporary files are saved (but it reduces performance)
    You can enable IE to delete automaticly the temporary files if IE is closed.
    Hope it helps.
    Regards
    Alex

  • How to clear the field in APEX...?

    Can any body tell me how to clear or reset the fields in the user interface (APEX 4.0)...? i.e., page items... when i click reset button i want all the fields in my region to be cleared...
    thanks,
    - regards,
    Beginner...

    Create a new process, select "Session State" as process category. Select "Clear Cache for all Items on Pages (PageID,PageID,PageID)" as Process Type.
    Set the conditions to bind it to your button.
    Best Regards,
    Gokhan Atil
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • New GP Task Items do not appear in UWL after clear item cache of GP System

    HI, SDN Expert.
    After I made some minor change in the GP configuration xml (changing the "createdate" format from "date" to "datetime"), I went to the Cache Administration Page to clear the item cache of my GPSystem. I went to register the item types for all system in the UWL Configuration Page.
    After clearing the cache and register the item types, I started initiate some GP tasks, but now all the GP tasks are not appearing in the UWL any more.
    I remembered last time the same thing has happened, but the GP tasks started appearing only after a few hours.
    Now, it has been two hours wait, I still don't see my GP tasks re-appear.
    I wonder any of you know whether this situation is normal? What is the root cause for this situation? And how do I fix this?
    Thanks for advise,
    KC

    Issue resolved.

  • How to clear the cache in the portal browser

    Hello Experts,
    Iam unable to clear the cache in the portal. I tried  clearing the Navigation cache , PRT cache,PCD cache,Database cache,UME cache.
    The senario is in the browser if iam logging with some user X , he should see only 1,2,3 countries, and if i logg off and again logg in the same browser with different user he is seeing same 1,2,3 countries unlike he should see 4,5 countries.
    But if iam opening in different browser iam getting the correct one with cache cleared.
    I want to acheive this in the same browser.
    Qucik help in solving out this cache problem is appreciable.
    Regrds,
    Manasa.

    There is one more important cache: the HTTP Provider Service cache (in VA).
    To find out why the browser is showing the same languages, analyze what the server is sending to the browser with HTTPWatch or Firebug and look at the cache flag. Also check what is the iView cache parameter? Is it user, session, shared or none?
    How do you do the logoff? The best thing is to make sure that the HTTP Session is killed. If not, the portal may send data that is cached for the HTTP Session to the browser. When you open a new browser, you will also open a new HTTP Session. That could be the cause why it is working with a new browser instance.
    br,
    Tobias

  • How to clear the caching realm?

    Hello,
    WebLogic Server 5.1 SP 6 on W2k Server
    Is it possible to emtpy the caching realm inside of an EJB?
    The class weblogic.security.acl.CachingRealm
    provides the clearCaches() method, but I don't know how
    to get the actual cache object within an EJB in the WebLogic
    server.
    Thanx in advance,
    Michael

    yeah word
    This works for sure in a servlet or jsp
    <%
    response.setContentType("text/html");
    BasicRealm basicRealm = Security.getRealm();
    try {
    ((CachingRealm) basicRealm).clearCaches();
    } catch (ClassCastException ce) {
    out.println("There is a class cast exception and getRealm ain't no returned
    a CachingRealm");
    out.println("This probably means that you don't have a pluggable realm
    hooked into WebLogic.");
    out.println("No pluggable Realm = no Cachingrealm!");
    %>
    Is there anyway to clear a particular user from the cache. When the user's
    password
    is changed in the database, i would like to remove this user from the
    Caching
    realm. If i call authUserPassword() with incorrect password, will it
    remove the
    User object from Cache?
    Also, in a cluster, how do i remove the User from all WLS instances.
    thanks for your help.
    regards,
    Jegan
    "Tom Moreau" <[email protected]> wrote:
    Why do you need to clear the caching realm?
    Anyway, I think you can do it by (I haven't tried this):
    import weblogic.security.acl.Realm;
    import weblogic.security.acl.Security;
    import weblogic.security.acl.CachingRealm;
    Realm genericRealm = Security.getRealm();
    CachingRealm cachingRealm = (CachingRealm)genericRealm;
    cachingRealm.clearCaches();
    -Tom
    "Michael Saringer" <[email protected]> wrote:
    Hello,
    WebLogic Server 5.1 SP 6 on W2k Server
    Is it possible to emtpy the caching realm inside of an EJB?
    The class weblogic.security.acl.CachingRealm
    provides the clearCaches() method, but I don't know how
    to get the actual cache object within an EJB in the WebLogic
    server.
    Thanx in advance,
    Michael

  • How to clear the cache of an applet?

    I m working on an applet displaying images for client side. So server will send me an image(picture),but for the first time i display the image,it will be successfully. when i want to view another new image ,it display the previous image, so i suspect the problem is the cache of the applet.so how do i clear the cache of an applet?

    This is quiet clear:
    http://java.sun.com/products/plugin/1.3/docs/appletcaching.html
    On Windows platform the Java Control Panel has also a "clear cache" option.
    Anyway you may find the cache on your harddrive.
    Hope that helps.

  • Fiori Enhancment - BSP how to clear buffer/cache?

    Hi All,
    So I'm trying to make some enhancmenets to a Fiori app. I have downloaded it and reuploaded is as a new BSP application.
    I wanted to make some changes to the BSP, so I changed the code directly, in SAP.
    I thought I must be doing something wrong, but my changes weren't having any effect.
    To further test this I wrote some nonsense which should ahve broken it... but it still ran fine!
    To test further again I went to SICF and deactivated the node!! ANd it STILL worked fine!
    I opened new sessions in my browser, and new incognito windows, and closed it all and reopened it all, but it STILL works fine!
    There is clearly some kind of caching/buffering going on here, I've found the tables: O2PAGDIR and O2PAGDIRT have buffered values (found out this from ST02)
    But how do I clear it?! I turned buffering off in these tables, to see if that worked, and made another change, and tried to reload the table... but STILL the page loads with no changes.
    Please, can anyone tell me how to clear the buffer/cache that means that when I make UI chanegs in a BSP it doesn't show them?!
    Thank you
    Lindsay

    Hi Mauro,
    I overcame this issue in a variety of ways:
    Firstly, I do all the customisation of the BSP applications locally on my machine.
    Then I upload the whole BSP using the program /UI5/UI5_REPOSITORY_LOAD.
    In order to make sure the display you see in your browser is the up-to-date version, there are various cache clearing things you can do:
    Program /UI5/RESET_CACHEBUSTER - this has no UI, and takes only a second to run
    Transaction /UI5/THEME_TOOL : double click on "Invalidate Cache" to refresh the theme cache (if you have made theme changes)
    Then you have the two model caches mentioned above by Ashish - if you changes the Gateway service but aren't seeing these changes you should run these to ensure the model is up-to-date.
    Browser caches: make sure you browser cache is cleared: for Chrome this is easy: hit F12 (to get Dev toold open), clickk on the cog icon, and tick the box "Disable cache (while DevTootls is open)" - then keep devtools open while refreshing the page.
    The best way to enhance the BSP applications is locally on your machine, and do all your testing locally before uploading.
    I hope this helps, let me know how you get on.
    Lindsay

  • How to Clear ODI Cache?

    Hi Experts,
    I have an ODI package scenario that assigns some variables and run an ODI interface there. After the first ODI scenario run, all the target data is populated fine. Then I removed all the target data and re-run the scenario, nothing is populated in target. It looks like data was cached somewhere and since no change for the source data, nothing get re-populated.
    I'm wondering if I can clear the cache somewhere so the scenario will still populate data after re-run?
    Thanks.

    Thanks for your reply. The data removed with commit and all $ tables were deleted. The source data were selected in interface with a date defined by an ODI variable, looks like the ODI scenario cached the variable value and subsequent run will use the current value. Is there a way to clear the variable value? The variable was defined with Action 'Not persistent'.
    Thanks.

  • How to clear Applet cache in IE?

    Though the applet files is updated and compiled. The new class file is there, but the browser keeps bringing up the old version. Anyway to clear the cache instantly?
    thanks,

    Hi lili3000
    In ur windows (Provided u r using windows machine)folder u will find a sub folder called javaplugin1.3 where u will find one more folder with name jar.
    In my m/c the path is like
    C:\Windows\javaplugin1.3\jar
    This is the folder where ur jar file gets downloaded by the browser. So delete all the file from that folder, then only the effect in ur applet will take place.
    Hope this will work 4 u.
    cheers
    Soniya

  • How to clear old CACHE entries -- RSRCACHE

    Hello Gurus: What is the suggested menthod to clear the Cache entries of yesterday in RSRCACHE.
    We r still using 3.1 & will be upgrading soon.
    I will be happy to assign points & thanks for your help.

    Hi
    You can go to RSRT
    Select the cache Monitor
    There on the top you can find option Delete.
    So from there you can delete the main memory cache, or what ever its required.
    Regards
    M.A
    Edited by: M.A on May 21, 2008 4:15 PM

  • How to clear class cache upon applet startup?

    Hi,
    is there any HTML-tag to force the class loader cache being cleared upon applet startup?
    When I have recompiled the applet code, I am forced to clear the cache in the java plugin console. Is there any way to automate this?
    Thanx in advance

    i know what he's talking about, you have to restart the browser to get it to reload the class files. You may be able to set your browser cache to 1MB, but I think I did that and it didnt work, and I never found a solution. If you're trying to develop your application and you're testing it and this is becoming a problem, use appletviewer to test the applet. Once you have the finished product, make sure it works on IE and Netscape.

Maybe you are looking for

  • URGENT, Please help with calling one program in another

    I am am trying to call Ch4Ex5 within Ch3Ex5. The teacher said it should take about 6 lines of modification within Ch3Ex5 to be able to call out Ch4Ex5. I also might need to modify Ch4Ex5 to get it to work. But I spent many hours and its due soon and

  • Accessing resources in a jar

    im working on a msn clone in jbuilder 9(enternprise), and im having a really hard time organizing my resources. i have a few icons and i grouped them into a folder name 'icons'. at first, the images can only be loaded when i place them in the class d

  • Validate an item based on the value of another

    I have two fields on my application, one that determines the type of record I am creating and another that holds the severity. The severity is only required when a certain type of record is created. So a item level validation item doesn't seem to wor

  • Moving iWeb to my iDisk so I can access it from two different machines

    Hi, Wondering if anyone has any experience in updating iWeb from more than one Mac? I've just migrated from my old MacBook (running Tiger) to my new MacBook Air (running Snow Leopard). The migration has of course brought over all my iWeb files as wel

  • Central contract distribution in two backend ERP system

    Hello All, I am implementing SRM 7.0 Contract management (SAPKIBKV07) with two backend ERP system. We have a requirement where we will create a Global contract in SRM system. Upon distribution based on purchase organisation this contract should get d