Since the report opens in a new window, you could add the following to the <body tag of the html page that launches the report:
<body ... onBlur="document.forms[0].reset();">
This will do what you require, but it will also be annoying because if the user switches to anothr window, I believe the same onBlur event will occur.
OR
You could add this to the window that displays the report (that is, if you have the report within an -HTMLFORM BEGIN and END): <body ... onUnload="self.opener.document.forms[0].reset();">
The problem with this method is that you'll get a JavaScript error if the original window was closed before the report window, so you may have to do this instead:
<body ... onUnload="if (!self.opener || self.opener.closed) {} else {self.opener.document.forms[0].reset();}">
This means: If the opening window does not exist or the opening window has been closed do nothing, else rest the form on the opening window before closing the current window.
I hope this helps...
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server