Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Prevent Refresh in Report Window
mmah
Is it possible to prevent a refresh for a report window, with a solution to it? For example, I have launched a report that generates Report X based on the criteria that I've defined by my own. A report window will open and the report servlet is based on the BIRT runtime engine but not the BIRT Viewer.
Someone did tried refreshing the window and eventually, he / she stumbled upon a NullPointerException when pressing F5.
Thanks.
Find more posts tagged with
Comments
rmurphy
You could use a text control in the report and embed some JavaScript in the report to try to prevent refreshing the page. This can be tricky and not always 100% given different browsers and all the different user scenarios.
What you may want to consider is generating a rptdocument upon the first request and use servlet filters to direct subsequent refresh request to simply render the report from the report document. Of course you will want to implement a class to manage the report documents by associating the file with a users session and delete the report document when the users session expires.
Rob