Forums BIRT Reports Auto refresh of report

This topic contains 1 reply, has 2 voices, and was last updated by  Peter 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #383

    vinaysaraswat
    Participant

    In a table report, I want the HTML page to automatically refresh after every X seconds. Kindly do the needful

    I tried this

    <meta http-equiv=”refresh” content=”60″ >

    I am using BIRT 2.2.1.

    Thanks!
    Vinay

    #384

    Peter
    Participant

    Hi Vinay,

    Add a text element set the type to html and enter a
    value similar to the following.

    <form name=”input” onSubmit=”return reloadPage();”>

    <script type=”text/javascript”>

    function reloadPage() {
    //alert(“Reload time”);
    var temp = new String(location.href);
    var targetURL = new String();

    if(temp.indexOf(“__overwrite=”) != -1 ){
    targetURL = temp.substring(0, temp.indexOf(“&__overwrite”) -1);
    }else{
    targetURL = temp;
    }

    targetURL += “&__overwrite=true”;

    //alert( targetURL );
    location.replace(targetURL);

    return false;
    }

    timer=setTimeout(‘reloadPage()’, 5000);
    </script>

    </form>

    Thanks,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.