3 Replies Latest reply: Nov 29, 2012 12:40 PM by aracila RSS

    Refresh a display only item in the reagion

    aracila
      Hi All,

      Please help me understand how to refresh the region or item in the region, using DA.

      Please go take a look here: http://apex.oracle.com/pls/apex/f?p=4550:1:0::::F4550_P1_COMPANY:ANDREIDEMO
      User: dev
      Password: dev

      Demo app, page 2.

      On the click of the button i have a DA that insert one line in the table and refresh the region (item).

      How can i display new value in the display only item without resubmitting the page?

      Thanks a lot
      Andrei
        • 1. Re: Refresh a display only item in the reagion
          VC
          Andrei,

          Refresh does not support on ITEMs. see documentation http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/advnc_dynamic_actions.htm#sthref2814

          Refresh - Triggers a refresh of the affected elements. Note that not all elements support a refresh, you can use it for interactive reports, classic reports, charts, list view and all item types with cascading LOV support. Plug-ins might support this action as well.

          You should use Page Items to Return under your Execute PL/SQL Code true action to refresh the items value from the session state
          • 2. Re: Refresh a display only item in the reagion
            aracila
            Hi,

            Do you know how to refresh a classic report from javascript.

            I am trying to change a little bit the output and using a classing report for some summary statistics.
            I don't know how to simulate Refresh Region DA from javascript

            Thanks a lot
            Andrei.
            • 3. Re: Refresh a display only item in the reagion
              aracila
              Have found the solution:

              jQuery('#STATIC_ID_OF_REGION').trigger('apexrefresh');

              Thanks a lot
              Andrei