Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help with how to refresh one region of an APEX 4 page.

813302Oct 13 2011 — edited Nov 22 2011
I have tried the options I can find to refresh a single region (classic report) on an APEX 4 page. I want the refresh to happen automatically without any input from a user (no button press, no sorting on the report or anything). Just based on a 5 second interval. Can someone help me further. It seems that I need to either use javascript or jquery. I am not sure where to put this code.

I have tried the following different methods. I put them in the Region Footer. Not sure if that is the proper place. Nothing happened when I did this.
Using: Application Express 4.0.2.00.07
<script type="text/javascript">  
  <!--  
    jQuery('#STATIC_ID_OF_REGION').trigger('apexrefresh');
  //--> 
</script> 
<script type="text/javascript">  
  <!--  
    setInterval( "$a_report('#REGION_ID#'.substring(1), 1, 7, 7);", 5000); 
  //--> 
</script> 
<script type="text/javascript">  
  <!--  
    setInterval(function(){ $('#P4_LIST').trigger('apexrefresh'); }, 000); 
  //--> 
</script>
Thanks.

Edited by: cjmartin on Oct 13, 2011 2:34 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2011
Added on Oct 13 2011
15 comments
33,562 views