7 Replies Latest reply: May 16, 2013 5:38 AM by SAYYED RSS

    How to clear cache when tab clicked

    SAYYED
      Hi ,


      I am having a report page(830) whith search button and with the tab "Reports",

      1. consider I did search by providing some values , it is displayed the report with some values.

      2. now i clicked tab "Administrator" which is calling the page 835,

      3. and again i clicked the "Report" tab to go back to page 830, Now i need clear a cache of page 830.


      Can any one help how can i do this.

      thanks and regards,
      Ibrahim Sayyed.
        • 1. Re: How to clear cache when tab clicked
          Sreenithi
          Hi,

          If u need to clear the page(830) when we click on the 'Administration tab' ,

          1.In page rendering section in process select the category of the process as 'Session State'.

          2.Select the session state process type as Clear Cache for all Items on Pages (PageID,PageID,PageID).

          3.select point as On load-Before header.

          4.Then in pages enter the page numbers that you want to clear.(you can give multiple page numbers by using (,)).
          • 2. Re: How to clear cache when tab clicked
            SAYYED
            Hi,

            I did as you said , but it clearing page cache even if click on search by providing some values, so it is not showing my report.
            • 3. Re: How to clear cache when tab clicked
              fac586
              SAYYED wrote:

              I am having a report page(830) whith search button and with the tab "Reports",

              1. consider I did search by providing some values , it is displayed the report with some values.

              2. now i clicked tab "Administrator" which is calling the page 835,

              3. and again i clicked the "Report" tab to go back to page 830, Now i need clear a cache of page 830.
              Standard tabs set the <tt>REQUEST</tt> built-in substitution string to the name of the tab clicked. If "Reports" is a standard tab, use an Application Process at the On Submit: After Page Submission - After Computations and Validations point with condition Request = Expression 1, put the tab name in Expression 1, and use process code:
              begin
                apex_util.clear_page_cache(830);
              end;
              • 4. Re: How to clear cache when tab clicked
                vdsadhi
                Hi Sayyed,

                May i know in which page you have created the process for clear cache??

                Thanks,
                Lakshmi
                • 5. Re: How to clear cache when tab clicked
                  Sreenithi
                  Hi sayyed,

                  Can you give the process in page 835 and check.
                  • 6. Re: How to clear cache when tab clicked
                    SAYYED
                    Hi ,

                    Thanks you so much for your support.

                    My issue has been resolved by crete application page process, I have appneded below how i did.

                    1. create a new application page process:
                    Navigate to Applications -> Shared Components -> Application Processes and hit “Create” in the application builder. Create a process which runs “On Submit: After Page Submission – Before Computations and Validations”. In Process Source type the following

                    BEGIN

                    IF (:REQUEST = 'T_FCRMTERRDETAILS') THEN
                    APEX_UTIL.CLEAR_PAGE_CACHE(830);
                    END IF;

                    END;

                    Thanks and regards,
                    Ibrahim sayyed.
                    • 7. Re: How to clear cache when tab clicked
                      SAYYED
                      Hi ,

                      Thanks you so much for your support.

                      My issue has been resolved by crete application page process, I have appneded below how i did.

                      1. create a new application page process:
                      Navigate to Applications -> Shared Components -> Application Processes and hit “Create” in the application builder. Create a process which runs “On Submit: After Page Submission – Before Computations and Validations”. In Process Source type the following

                      BEGIN

                      IF (:REQUEST = 'T_FCRMTERRDETAILS') THEN
                      APEX_UTIL.CLEAR_PAGE_CACHE(830);
                      END IF;

                      END;

                      Thanks and regards,
                      Ibrahim sayyed.