Home
Designing Analytics Reports
improve Performance
Migrateduser
<p>Hello,</p>
<p> </p>
<p>I need your help please. I designed a cross tab report. This report has n pages and is shown on a flat screen.</p>
<p>With a script the report jump every 36 sec (22000ms) to the next page. And every 15 min. I would like to reload the report (if data changes).</p>
<p> </p>
<p>For this I use following script:(full script below)</p>
<p> </p>
<blockquote class="ipsBlockquote">timer=setTimeout('reloadtonextpage()', 22000);<br>
timer1=setTimeout('refreshtonextpage()', 900000);
<p> </p>
</blockquote>
<p> </p>
<p>To run the report I use "frameset". My url look like this:</p>
<blockquote class="ipsBlockquote">frameset__report=report/dienstplan_profil_pagev1.rptdesign&ParentID=2424&DatVon=2017-03-01&DatBis=2017-03-31&__page=2
<p> </p>
</blockquote>
<p> </p>
<p>But every time the report jump from page 1 to page 2 .... it looks like that the the runtime load the data new and it takes a long time (also the performance on the server is very high).</p>
<p> </p>
<p>What I need ist:</p>
<p>-> The Report should load all of the data (every 15 min)</p>
<p>-> The Report should jump from page to page every 36 sec. without loading, refreshing etc.</p>
<p> </p>
<p>Could you help me, how I could to this.</p>
<p> </p>
<p>Best Regards</p>
<p>Rafael</p>
<pre class="_prettyXprint _lang-js">
<script>
total = <value-of>totalPage</value-of>;
current = <value-of>pageNumber</value-of>
function reloadtonextpage() {
var currentURL = new String();
currentURL = document.URL;
var removeThis = currentURL.indexOf("&__page=");
if(removeThis > -1) {
currentURL = currentURL.substring(0, removeThis);
}
var newPage = current + 1;
if(newPage > total) {
//window.location = currentURL + "&__page=1";
birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : Constants.PARAM_PAGE, value : 1 } );
} else {
//window.location = currentURL + "&__page=" + newPage;
birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : Constants.PARAM_PAGE, value : newPage } );
}
}
function refreshtonextpage() {
var currentURL = new String();
currentURL = document.URL;
var removeThis = currentURL.indexOf("&__page=");
if(removeThis > -1) {
currentURL = currentURL.substring(0, removeThis);
}
var newPage = current + 1;
if(newPage > total) {
window.location = currentURL + "&__page=1";
} else {
window.location = currentURL + "&__page=" + newPage;
}
}
timer=setTimeout('reloadtonextpage()', 22000);
timer1=setTimeout('refreshtonextpage()', 900000);
</script>
</pre>
Find more posts tagged with
Comments
There are no comments yet