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!

Refreshing an APEX Report Region automatically after specified interval

MaguzziMar 23 2015 — edited Apr 10 2015

Hi all,

I have a report region in my page that I would like to be auto refreshed after every 5 seconds. The data in the reports underlying table is generated using a procedure. I need to call the procedure after every 5 seconds which will refresh the table, and then the report region must refresh too which will display the refreshed data.

I currently call the procedure in a Before Header Process, which generates the data for the table used in the report :

I have added the following code to the Report Region Footer. (I found the code at Oracle APEX report refresh the easy way « Warp11 .::. Oracle Apex Knowledge Group )

<script type="text/javascript">

<!--

  setInterval("jQuery('##REGION_ID#').trigger('apexrefresh');", 5000);

//-->

</script>

How would I manage to execute the procedure after every 5 seconds or so.? I can only really see if the above code works once the procedure call is being repeated after an interval, so I am not even sure if I am on the right track or not.

I will appreciate any assistance

Regards

Dominic

This post has been answered by Scott Wesley on Mar 23 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2015
Added on Mar 23 2015
21 comments
32,421 views