Skip to main content



      Home
Home » Archived » BIRT » How can I use the refreshRate Property
How can I use the refreshRate Property [message #203470] Wed, 29 November 2006 03:59 Go to next message
Eclipse UserFriend
Originally posted by: oliver.zein.email.de

I want to refresh a report in the report viewer by using the refreshRate
Property of the ReportDesign Element. So i added the following tag inside
the report group:

<property name="refreshRate">10</property>

But after 10 seconds nothing happens. What's wrong with this?

Thanks!
Re: How can I use the refreshRate Property [message #203893 is a reply to message #203470] Wed, 29 November 2006 21:25 Go to previous messageGo to next message
Eclipse UserFriend
I do not believe the engine supports that property yet.
You can add a script in a text control that uses a script tag.
This will only work in HTML. In order for this to work in the Web Viewer,
you will need to make modifications to the js code.

For the script look at this:
http://www.netlobo.com/javascript_location_reload.html

simple example attached:

Jason

<?xml version="1.0" encoding="UTF-8"?>

<!-- Written by Eclipse BIRT 2.0 -->

<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.6"
id="1">

<property name="createdBy">Eclipse BIRT Designer Version
2.1.1.v20060922-1058 Build &lt;20060926-0959></property>

<property name="units">in</property>

<property name="comments">Copyright (c) 2006 &lt;&lt;Your Company Name
here>></property>

<page-setup>

<simple-master-page name="Simple MasterPage" id="2">

<page-footer>

<text id="3">

<property name="contentType">html</property>

<text-property name="content"><![CDATA[<value-of>new
Date()</value-of>]]></text-property>

</text>

</page-footer>

</simple-master-page>

</page-setup>

<body>

<text id="6">

<property name="contentType">html</property>

<text-property name="content"><![CDATA[<P>

<script defer="true">






var reloadTimer = null;




window.onload = function()

{

setReloadTime(5);

}




function setReloadTime(secs)

{

if (arguments.length == 1) {

if (reloadTimer) clearTimeout(reloadTimer);

reloadTimer = setTimeout("setReloadTime()", Math.ceil(parseFloat(secs) *
1000));

}

else {

window.location.replace(window.location.href);

}

}






function disableReload()

{

if (reloadTimer)

clearTimeout(reloadTimer);

document.form1.reloadTime.value = 'Disabled';

}




</script>

</P>]]></text-property>

</text>

</body>

</report>


"Oliver Zein" <oliver.zein@email.de> wrote in message
news:4acf2daf7117833067c1453342b113a0$1@www.eclipse.org...
>I want to refresh a report in the report viewer by using the refreshRate
>Property of the ReportDesign Element. So i added the following tag inside
>the report group:
>
> <property name="refreshRate">10</property>
>
> But after 10 seconds nothing happens. What's wrong with this?
>
> Thanks!
>
>
Re: How can I use the refreshRate Property [message #204347 is a reply to message #203893] Fri, 01 December 2006 08:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: oliver.zein.email.de

Jason

many thanks for your help. The example works very well in HTML. Why does
it not work in the Web Viewer? Which jsp file(s) do I have to change to
make it work in the Web Viewer?

- Oliver
Re: How can I use the refreshRate Property [message #204404 is a reply to message #204347] Fri, 01 December 2006 11:53 Go to previous message
Eclipse UserFriend
There is a bug with the script tag and the web viewer. It may work with the
latest milestone build of 2.2.
You could look at adding it to FramesetFragment.jsp. I havent tried it
though.

Jason

"Oliver Zein" <oliver.zein@email.de> wrote in message
news:a760026ac642bfef6611e5be6de94f0d$1@www.eclipse.org...
> Jason
>
> many thanks for your help. The example works very well in HTML. Why does
> it not work in the Web Viewer? Which jsp file(s) do I have to change to
> make it work in the Web Viewer?
>
> - Oliver
>
>
>
Previous Topic:Persistent Reports -- where do I find information?
Next Topic:BIRT Tomcat Integration Problem
Goto Forum:
  


Current Time: Mon Jun 09 15:28:23 EDT 2025

Powered by FUDForum. Page generated in 0.03374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top