Clear cache of 2nd level tabs

Hello,
I have a question related to clearing the cache in a two level tab application structure. If you look at the examples application of Denes Kubicek, you see that he uses a two level tab structure. The horizontal bar below the header is level 1 and the left 'menu-bar' is level 2.
I've also tried to implement this, because I think it's a real nice way to offer a good navigation structure. But I haven't found a good way to clear the cache of a page that is opened when someone clicks on a 2nd tab-level. Anyone an idea? Maybe Denes himself can help me out?
Thanks!
Jacob

I think you are referring to standard tabs as second-level and parent tabs as first-level. I always think of them the other way round. Okay, what you need to do is create an application process that fires (by default, for every page view) conditional on the request being the tab name (T_ORDERS, for example). The process firing point must be On Submit - Before Computations and Validations. In this process you can determine the page being submitted with the standard tab using :APP_PAGE_ID and the name of the tab submitting the page, again, using :REQUEST. Then the process can call apex_util.clear_page_cache to do the cache-clearing you need.
Scott

Similar Messages

  • How to clear cache & page reset when tab clicked

    Hello,
    I'm using Apex 40 and two tab level template.
    I would like to clear cache and reset pagination when 2nd level tab clicked
    Is there anyway to do that?
    Thanks.

    hlthanh wrote:
    Hello,
    I'm using Apex 40 and two tab level template.
    I would like to clear cache and reset pagination when 2nd level tab clicked
    Is there anyway to do that? Can we stick to standard APEX terminology: do you mean Parent Tab (2nd level up) or Standard Tab (2nd level down)?
    Parent Tabs allow this to be done directly using the Clear Cache property and reset pagination for this page checkbox for the Tab Target.
    For Standard Tabs, create Before Header processes on the tab target page:
    <li>Session State > Clear Cache...
    <li>Reset Pagination

  • How to Clear Cache for all Items of the Current Page of a TAB

    Hi,
    I am having a TAB, when that tab is clicked..it goes to suppose Page 1, what I want to Clear the Cache of Page 1 ...as soon as Page appears...
    I don't see any option for that in the TAB Definition Properties....
    Thanks,
    Deepak

    I got the solution....
    refer by SCOTT...
    Re: ApEx Development Team: tab clear cache - new feature?
    thanks,
    Deepak

  • Clear Cache of a Page using Tabs

    Hello,
    my problem is, that i want to clear the cache of a page, when the user accesses this page by clicking a tab.
    So my Page has six items, which are used to search people in a db.
    Under the items is a submit button, which submits the values in the items and the same page is loaded with the search result.
    But when i go on another page and click on the tab of the "search-page" the result is still there.
    Because of the submit button i can not create a process which clears the cache when the page is loaded....
    I hope you understand my problem,
    Thank you,
    Tim

    This is not possible using the built in Apex tabs. Apex tabs are meant to quickly switch between pages with all your session state intact.
    You can do what you want if you use a List instead of tabs. You have full control over List entries and you can clear cache for the list target page, set other items as needed (you can control the full f?p= URL)
    Hope this helps.

  • Clear Cache for Certain Items on Tab Click

    I found this in the forms:
    If you want to clear the cache of the page submitted when the tab is clicked, that should be the job of that page. You can create an after-submit process (before computations and validations) with:
    apex_application.clear_page_cache(:APP_PAGE_ID);
    However, I need to clear certain items not everything on the page. I tried substituting apex_application.clear_item_cache(:APP_ITEM); but that doesn't work. What is the process that clears the apex_application item cache?

    Is the page you're clicking away from executing a submit when you click away? If so, I would try either of these in a page branch.
    Assume you are on page 1 and clicking to page 2. On Page 2, let's say you want to keep the cache on items P2_A, P2_B but clear the cache for P2_C.
    In your page branch (defined on page 1) that fires to take you to page 2, try either of these:
    Clear cache on page: 2
    Set these items: P2_A, P2_B
    With these values: &P2_A., &P2_B.
    That should clear all of 2 but reset A and B back to their current values from the cache before it's cleared.
    Or, try this:
    Clear cache on page: (don't put anything here)
    Set these items: P2_C
    With these values: (don't put anything here)
    That should (I think) only clear P2_C

  • Tried everything, cannot get firefox to open new tab rather than new window. set options, cleared cache, rebooted. win 7 firefox v26

    Win 7 64bit desktop.
    Set tools --> options --> tabs OPEN new windows in new TAB instead checked.
    apply/save .. tried from there, tried exiting firefox. tried clearing cache.
    what else???

    Hello leelassow, '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to clear cache for a tab through api

    How do i clear cache for a tab programatically?

    All this info applies to
    Portal version 9.0.2.6.18
    I found that there is portlet called "clear cache",
    under provider portal tools. This when placed on a tab can clear the cache of that tab for a user.
    I found this as a work around for the API.
    Harish

  • ApEx Development Team: tab clear cache - new feature?

    Hi ApEx Development Team!
    I searched the forum and found, that many have (had) the same problem like me:
    Why isn't it possible to clear the cache by clicking on a tab? Why is it only possible for parent tabs?
    Wouldn't it be a nice feature for the next version of ApEx? This feature exists already, only not for the standard tabs...
    Regards,
    Sofie

    taepodong wrote:
    Apologies to dig up old thread but I ran into this problem and thought I'd share my solution as well (for search engine)There is no point in doing this. There are thousands of threads in this forum that are unanswered, or contain solutions that are suboptimal or that have been superseded. They can't all be updated "for search engine"...
    1) Edit the tab property where you want your page's cached removed. In My case it I had a tab pointing to page 6 and I needed page 6's cache cleared when I clicked on it.
    2) Edit the condition for the tab deisplay --> Function returning boolean.
    3) In the function body put the following code:
    begin
    if :APP_PAGE_ID != 6 THEN
    apex_application.clear_page_cache(6);
    END IF;
    RETURN TRUE;
    end; The expression will always evaluate to true, and will clear cache from page 6 if clicked from any other page that is not page 6.
    However if you want to apply condition to the page as well. (say and admin page based on :APP_USER property) then wrap the return true in another If-statement as well.I subscribe to the old-school idea that state-changing side-effects in functions are evil. Using Condition code in this unexpected way will make an application much harder to debug and maintain. If I came across this in an application I was working on I'd refactor it.
    Scott posted the correct way to do this above (post of 26-Mar-2008 23:00&mdash;not marked as helpful/correct as this was before the forum had this feature): Clear cache using an On-Submit Application Process that is conditional on the <tt>:REQUEST</tt> value set by the relevant tab(s).

  • 87 tabs are restored after each restart even after clearing cache

    firefox onVISTA Restores 87 tabs even after clearing cache: This takes a long time to restart

    Clearing the cache might not help, try the following:-
    1) Cross check is 'Show my windows and tabs from last time' checked (see attached file 'Open tabs from last time'). Also refer to this website wrt 'session restore'
    https://support.mozilla.org/en-US/kb/Session-Restore
    2) try clearing up the entire history and then see if the same problem occurs (Tools -> Clear Recent History)

  • Coherence as a hibernate 2nd level cache

    Hello,
    I'm trying to use Coherence as a hibernate 2nd level cache but I'm getting the following exception when there are hundreds of concurrent DB transactions.
    java.lang.IllegalStateException: Exceeded maximum number of waiting threads (Status=1)
    at com.tangosol.net.cache.OverflowMap$Status.waitForAvailable(OverflowMap.java:4029)
    at com.tangosol.net.cache.OverflowMap.prepareStatus(OverflowMap.java:2152)
    at com.tangosol.net.cache.OverflowMap.beginKeyProcess(OverflowMap.java:1873)
    at com.tangosol.net.cache.OverflowMap.getInternal(OverflowMap.java:580)
    at com.tangosol.net.cache.OverflowMap.get(OverflowMap.java:330)
    at com.tangosol.coherence.component.util.CacheHandler.getLease(CacheHandler.CDB:3)
    at com.tangosol.coherence.component.util.CacheHandler.ensureLease(CacheHandler.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.updateResource(ReplicatedCache.CDB:18)
    at com.tangosol.coherence.component.util.CacheHandler.put(CacheHandler.CDB:11)
    at com.tangosol.coherence.component.util.CacheHandler.putAll(CacheHandler.CDB:8)
    at com.tangosol.coherence.component.util.SafeNamedCache.putAll(SafeNamedCache.CDB:1)
    at com.tangosol.coherence.hibernate.CoherenceCache.put(CoherenceCache.java:90)
    at org.hibernate.cache.impl.bridge.BaseGeneralDataRegionAdapter.put(BaseGeneralDataRegionAdapter.java:48)
    at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:70)
    Anyone have any ideas?
    The timestamps cache has the default replicated cache scheme.
    Thanks,
    Ivelin

    Hello,
    Actually it's happening during read from a replicated cache too.
    java.lang.IllegalStateException: Exceeded maximum number of waiting threads (Status=1)
    at com.tangosol.net.cache.OverflowMap$Status.waitForAvailable(OverflowMap.java:4029)
    at com.tangosol.net.cache.OverflowMap.prepareStatus(OverflowMap.java:2152)
    at com.tangosol.net.cache.OverflowMap.beginKeyProcess(OverflowMap.java:1873)
    at com.tangosol.net.cache.OverflowMap.getInternal(OverflowMap.java:580)
    at com.tangosol.net.cache.OverflowMap.get(OverflowMap.java:330)
    at com.tangosol.coherence.component.util.CacheHandler.getLease(CacheHandler.CDB:3)
    at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB:10)
    at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
    at com.tangosol.coherence.hibernate.CoherenceCache.get(CoherenceCache.java:65)
    at org.hibernate.cache.impl.bridge.BaseGeneralDataRegionAdapter.get(BaseGeneralDataRegionAdapter.java:44)
    at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:130)
    at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2188)
    at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2151)
    at org.hibernate.loader.Loader.list(Loader.java:2121)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
    at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
    There must be a configuration option to control the number of waiting threads, right?
    I guess it's not a hardcoded constant.
    The statistics of the cache we are reading from are:
    0.99 hit probability
    550 303 gets
    1469 puts
    Size: 1270This is for 5 mins period.
    This cache holds the configuration of the application, so there are almost no writes.
    Thanks,
    Ivelin

  • Trying to clear cache-press firefox button top left of page, don't show advanced tab. am lost here. tpykanu

    as told on clear cache page, press firefox button (top left) then press advanced tab. yet when press firefox button, advanced tab don't show up

    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel
    *Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *Use "Firefox > Options" instead of "Tools > Options" if the menu bar is hidden.

  • How to switch from two-levels tabs to one.

    HTML DB v2.0.
    I noticed that having two levels tabs I am getting error (can not fetch the record) because the "Clear Cache" option is available only for Parent Level tab.
    My page is designed like this: Person's info, report on children records, and a form to enter/edit children records.
    I'd like to switch to one-level Tabs and "Clear Cache" every time you go from one tab to another so form will be in a mode to enter a new record.
    I tired to change the theme to one-level tabs, but nothing really changed when I went to create Tabs - it's asking for a Parent tab.
    Message was edited by:
    zavadskaya

    Hi zavadskaya
    Try:
    - keeping the two level tabs.
    - add a process to the Page Rendering area of your page
    - the process is set up as:
    - Type = Clear Cache for all Items on Pages ..... enter your page number.
    - Process Point = On Load - Before Header
    I hope this helps.
    Cheers,
    Patrick Cimolini

  • 2 level tabs with Breadcrum

    Hello,
    I want 2 level tabs but I confused following thing.
    2 tab set in Parent Tabs, parent tab set, Parent Tab Text, Tab Current for page, Breadcrum,
    I need someone lead to end this.
    Thanks in advance,
    EB NY

    Hi,
    OK - I think I'd better try to explain tabs another way!
    Simply put, tabs don't take you from a page, they take to to a page. When you have a page open on your screen, you see the tabs for all pages along the top of the screen. You can be on any page and click the tab for any other page.
    So, if your example page had the tabs along the top, you would have tabs for Page 2, Page 3 and Page 4. You can be on Page 2 and click the tab for either page 3 or page 4. But, you could be on page 3 and click the tab for Page 4 as well. Of course, there could be other tabs, so you could go from Page 2 to Page 12 if there was a tab for that. So, if you want to pass a value from page 2 to page 4, you would have to ensure that the tab for Page 4 is only available to Page 2 and then you would still have to devise a means of passing the value anyway and, if pages 3 and 4 are the only pages the user should go to from Page 2, then you would have to hide the other tabs as well to leave them no choice but to go to 2 or 3. Tabs are not designed for this purpose - they are there to get you to another page.
    Now, as I said before, when you click on a tab, the page is submitted and everything on the page is saved. Not only that, but any value saved is then available for use on any other page until such time as you clear out the cache for the saved page.
    To give you an example of what I mean: [http://apex.oracle.com/pls/otn/f?p=46426:1] You will notice that I have no buttons on any of the pages 1, 2 or 3. Enter anything into the P1 Text item and click any other tab and repeat for pages 2 and 3. You will see, if at any time you go to Page 4, that all your values are displayed. Page 4 is referencing the page items on the other pages from their saved values in the session. Keep using the tabs to move between the pages and change any/all values and see that these are immediately available on Page 4. When done, click on the button on page 4 and then click the tabs between pages again - the data is now gone as the button clears the cache for pages 1, 2 and 3
    So, I'm suggesting here that you don't need to "pass" any values as they are already available to the other pages because they have been saved into the session as soon as any tab is clicked.
    Andy

  • Leave request is not coming in 2nd level approval in MSS NWBC

    Hi all,
    I am getting the leave request for 2nd level approval in MSS work item.
    But I want that in MSS Leave approval () .
    Is there any configuration to do for this.?

    I am getting the leave request for 2nd level approval in MSS work item ?
    your getting leave request in POWL Application i.e Bulk approval list. This is correct only.
    But I want that in MSS Leave approval () . ?
    Can you explain little more clear.

  • Dunning - 2nd level dunning is not working

    Hello Experts
    I have received a requirement from client for configuration of two level dunning (ie 14 & 35 days). I did the following configuration
    (a) Defined the Dunning Area
    (b) Defined the Dunning procedure in the following manner:
    Dunning Interval in days - 1
    No. of Dunning Levels - 2
    Total Due items for Dunning - 0
    Minimum Days arreas - 14
    Line Item grace period - 14
    Selected -> Standard transaction dunning
    Under Dunning Level Tab
    Days in Arrears - 14 & 35
    We are not using interest & no penality charges.
    Assigned the Dunning Test with the following combination
    Letter 1 u2013
    W_MHND-BUKRS = Company Name
    W_MHND-MAHNN = 1
    W_MHND_SMABER = Dunning Area
    W_MHNK-MAHNA = u2018Dunning Procedureu2019
    Letter 2 u2013
    W_MHND-BUKRS = Company Name
    W_MHND-MAHNN = 2
    W_MHND_SMABER = Dunning Area
    W_MHNK-MAHNA = u2018Dunning Procedureu2019
    (c) Maintained the Dunning Area in customer master data -> Company code data -> Correspondance
    (d) I have posted the sales invoice with posting date and due date as 01.03.2011.
    While carrying the dunning activtity through T.Code F150 (I did the 1st level run with dunning date as 22.03.2011 ) -> All the activities are going smothly like Dunning selection completed, Dunning Print out completed and Sample Printout is completed for the 1st level
    The second level dunning is carried on 26.04.2011 as dunning date. However, after completion of selection perameters.  the system is showing as Dunning Selection is completed bu the system  log says as follows:
    Date        Time               Message
    26.04.2011  15:34:12    Job started
    26.04.2011  15:34:12    Step 001 started (program SAPF150S2, variant &0000000000523, user ID AMUNNALURI)
    26.04.2011  15:34:12     ******************   Log for dunning run 20110430 / TEST1  ****************
    26.04.2011  15:34:13     =========================================================================
    26.04.2011  15:34:13    > Account D 0000000061, company code SC01 is being processed
    26.04.2011  15:34:13    >            Reading account data and document information    Phase 0
    26.04.2011  15:34:13    > Account D 0000000061 has a payment method for incoming payments
    26.04.2011  15:34:13    > Account D 0000000061 read items: 11
    26.04.2011  15:34:13    >             Processing and completing dunning lines         Phase I
    26.04.2011  15:34:13    >   Doc. 0090000052/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Document 0090000380/2008/001 has new dunning level 1.
    26.04.2011  15:34:13    >   Doc. 0090000381/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Doc. 0090000384/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Doc. 0090000387/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Doc. 0090000614/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Doc. 1400000052/2008/002 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Doc. 1800000012/2008/001 has payment method for incoming payments, no dun.notice
    26.04.2011  15:34:13    >   Document 0064000433/2010/001 has new dunning level 2.
    26.04.2011  15:34:13    >   Document 0064000437/2010/001 has new dunning level 2.
    26.04.2011  15:34:13    >   Document 0064000438/2010/001 has new dunning level 2.
    26.04.2011  15:34:13    >           Check legal dunning procedure and credit memos     Phase II -
    26.04.2011  15:34:13    >           Minimum charges and dunning interest             Phase III
    26.04.2011  15:34:13    >             Generate dunning data                           Phase IV
    26.04.2011  15:34:14    Job finished
    If i continue the Dunning Print & Sample Print out.. the system is showing the following logs
    Date        Time      Message
    26.04.2011  15:35:31     Job started
    26.04.2011  15:35:31     Step 001 started (program SAPF150D2, variant &0000000000344, user ID AMUNNALURI)
    26.04.2011  15:35:31     >        Start print phase
    26.04.2011  15:35:31               0 dunning notices were read
    26.04.2011  15:35:31               0 dunning notices have been printed
    26.04.2011  15:35:31    End dunning printout 30.04.11 / TEST1
    26.04.2011  15:35:31    Job finished
    Kindly let me know, did i missed any steps in the configuration??
    Regards
    Anil

    Hello Renan
    Thanks for your reply, I am finding difference during 1st run and 2nd level run during selection perameters in the following area.
    (Note that, we are not using the Interest / charges)
    During 1st level dunning the system is showing as Dunning Level Log under Phase II, Phase III, Phase IV document no.
    26.04.2011  15:30:38    >           Check legal dunning procedure and credit memos     Phase II -
    26.04.2011  15:30:38    >           Minimum charges and dunning interest             Phase III
    26.04.2011  15:30:38    > Interest indicator 0N and currency GBP are missing in T056Z
    26.04.2011  15:30:38    >             Generate dunning data                           Phase IV
    26.04.2011  15:30:38    >
    26.04.2011  15:30:38    > Account D 0000000061 dunning notice/dun.area. Dunning area 58 is being processed.
    26.04.2011  15:30:38    > Account D 0000000061 dunning notice/dun.level. Dunning level 1 is being processed.
    26.04.2011  15:30:38    > Account D 0000000061 uses dunning procedure DG3
    26.04.2011  15:30:38    > Dunning level D 0000000061 is used for account 1
    26.04.2011  15:30:38    >   Document 0064000438/2010/001: Dunning level 1, days in arrears 20, status <.Dpi>
    26.04.2011  15:30:38    > Account D 0000000061 dunning data has been generated.
    26.04.2011  15:30:39    Job finished
    Where as for 2nd level dunning the system is showing under Dunning Level Log is as follows:
    26.04.2011 15:34:13   > Document 0064000438/2010/001 has new dunning level 2.
    26.04.2011 15:34:13   > Check legal dunning procedure and credit memos Phase II -
    26.04.2011 15:34:13   > Minimum charges and dunning interest Phase III
    26.04.2011 15:34:13   > Generate dunning data Phase IV
    26.04.2011 15:34:14   Job finished
    Due to this, i am presumed that some more configuration has been missed at my end.
    Kindly revert with your observations in the above log
    Regards
    Anil

Maybe you are looking for

  • Newby trying to transfer photos

    I just installed "Media Manager" and can't transfer the photos from my Blackberry 8330 to my computer. Been at it 2 hours, very frustrating. John

  • Processchain log picture with prcesses, load timings and number of records

    Hello Friends, I have seen a one shot screen with picture(don't know if output of a table or transaction) which shows the individual nodes of a process chain in log view with the individual load timings and the records loaded. Any idea how to get thi

  • ORA-12504 in an Oracle 9.2.0.1 RAC  setup

    Hi I keep getting the following error when connecting to either nodes in a RAC setup: ORA-12504: TNS:listener was not given the SID in CONNECT_DATA I tried different permutations for the tnsnames.ora but keep getting this error. Does anybody know how

  • How do I set up itunes sync with outlook to "replace information on this iphone" only? I do not want to do a two way sync.

    I am tired of fighting sync incompatibilities between Outlook 2007 and I Tunes, and no longer want to do a two-way sync. I still want my Outlook contacts and calendar on my iPhone and use advanced setup in iTunes to "replace information on this iPhon

  • Frame Grabber

    Es nesesario utilizar un Frame Grabber para una aplicacion con Vision Builder? Estoy buscando una de las camaras que se ofrecen en esta pagina y una marca ACE parece ser la idonea, sin embargo  en accesorios me aparece que se requiere un frame grabbe