This discussion is archived
1 Reply Latest reply: Aug 6, 2009 2:51 AM by Tobias Arnhold RSS

IRR (Interactive report) auto refresh

Tobias Arnhold Journeyer
Currently Being Moderated
Hi,

I want to refresh my interactive report automatically after x seconds. I thought about the following example:
<script type="text/javascript">
// automatic reload IRR 
function fnc_reloadIRR () {
 gReport.search('SEARCH');
 window.setTimeout(fnc_reloadIRR, 5000);
};
fnc_reloadIRR();
</script>
I tested this script in several page parts: page header, page footer and region footer of irr

I use Firefox with Firebug and get always the same following error:
gReport is undefined
fnc_reloadIRR()
f?p=12000:54:3843797532546835:::::()
error source line: [Break on this error] gReport.search('SEARCH');\r\n

Created source code:
255...<tr><td colspan="9" class="pagination" align="right"><span class="fielddata"> 1 - 7 of 7 </span></td></tr>
256</td></tr>
257</table>
258</div>
259</div>
260</div>
261</div></div><script type="text/javascript">
262 addLoadEvent(init_gReport);
263 var gReport,gValid;
264 function init_gReport(){
265
266gReport = new apex.worksheet.ws('');
267
268gValid = new apex.validation.v();
269 }
270</script>
271<div id="apexir_rollover" style="position:absolute;display:none;">...<script type="text/javascript">
272// automatic reload IRR
273function fnc_reloadIRR () {
274 gReport.search('SEARCH');
275 window.setTimeout(fnc_reloadIRR, 5000);
276};
277fnc_reloadIRR();
278</script>...
Any idea?

Best regards,


Tobias

Legend

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