This discussion is archived
4 Replies Latest reply: Feb 21, 2013 8:53 PM by 992671 RSS

Dynamic action - Report refresh wait indicator

VANJ Journeyer
Currently Being Moderated
Regarding the native Refresh action for Apex Dynamic Actions...depending on the report query, refreshing the report can take a fair amount of time, say a few seconds. It appears that the Apex/jQuery engine uses a synchronous AJAX call to refresh the report so during these few seconds the browser locks up with no indication that any processing is being done. This tends to make some some folks panic.

Is there a way to provide some visual cue that the report is being refreshed?

Thanks
  • 1. Re: Dynamic action - Report refresh wait indicator
    vee Guru
    Currently Being Moderated
    Vikas,
    I use a JS file with two functions one for showing a progressbar animation and the other for hiding it.
    The show function, uses jQuery to create and add a new div element to the page with a custom Gif image(generate one from ajaxload.info). Then style the div(z-index,position,height,width etc) , use an overlay if required. I can post the JS code if your are interested.
    One would have expected you to create an example page for this and posted it here ;) or are you looking for some builtin functionality(as always).
  • 2. Re: Dynamic action - Report refresh wait indicator
    VANJ Journeyer
    Currently Being Moderated
    Well, all the pieces (images, overlays, etc) are in there alread, apex.submit() supports a showWait indicator, so it's just a matter of hooking it into the pre/post Refresh chain. If you can post a working example on apex.oracle.com, that would be greatly appreciated, I am just lazy to do it myself this time :-)
    or are you looking for some builtin functionality(as always).
    Yeah, Apex has spoiled us all, if anything takes more than a few minutes of thought to tackle, I start to grumble.
  • 3. Re: Dynamic action - Report refresh wait indicator
    vee Guru
    Currently Being Moderated
    The default IR report's wait indicator uses the following code
    <span id="apexir_LOADER" style=""><img src="/i/ws/ajax-loader.gif"></span>
    So you show function could be(the styling comes with the builtin css files)
      function show_Anim (){
      if ( $('#apexir_LOADER').size() == 0 )
      { $('body').append( '<span id="apexir_LOADER"><img src="/i/ws/ajax-loader.gif"></span>');
      }
     else {
      $('#apexir_LOADER').show();
      }
    }
    And hide function
      function hide_Anim (){
      $('#apexir_LOADER').hide();
      }
    I ll try to set up a page in apex.oracle.com later
  • 4. Re: Dynamic action - Report refresh wait indicator
    992671 Newbie
    Currently Being Moderated
    Hi

    i'm newer to apex so i call dynamic action in form region, after calling submit button already entered values are not refreshed so please guide me how to refresh the page.

    Regards
    Vini

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points