Hi,
I have a report that needs to be displayed in Cognos Connection via Cognos Viewer and I need for the report to be auto-refreshed every 5 minutes. How can the report be auto-refreshed without having to constantly click on the refresh button?
Also, the report will have a prompt. Is it possible that the user enters the prompt only once to start the day and the report still auto-refreshed based on the original prompt selected?
Thanks
IBM has an article on their support page that details how to do it. here (http://www-01.ibm.com/support/docview.wss?uid=swg21342426).
In case the link ever goes dead, here's the Javsacript:
// Licensed Material - Property of IBM
// © Copyright IBM Corp. 2003, 2009
<script type="text/javascript">
var intval;
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined)
{
fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );
}
var preFix = "";
if (fW.elements["cv.id"])
{
preFix = fW.elements["cv.id"].value;
}
var nameSpace = "oCV" + preFix;
if(intval!="")
{
self.clearInterval(intval);
intval="";
}
self["RunReportInterval"] = self.setInterval( nameSpace + ".getRV().RunReport()",300000 );
intval = self["RunReportInterval"];
</script>