I have a report that works fine on first opening, but on any subsequent opening it reverts to the default parameters for its data.
I have two windows. Window A has a button that opens Window B, passing in three parameters. Window B contains a Report Viewer pointed at my report. The three parameters of the report are attached to Window B’s parameters using the Property Binding.
The very first time Window B opens, the report uses the parameters as designed. Works great. Window B has a “Close” button to close that window. I’ve even used the script: system.nav.closeParentWindow(event) and the result is the same.
When I then use Window A to open Window B again (with new or same parameters passed in), the Report Viewer does not get the Window B parameters passed in. I have debugged it out and saw that the Window B parameter are correct, but the Report Viewer parameters are set to “None”.
I don’t have any other odd or special scripting. The Report uses a Tag History query with a couple of time series charts. Nothing out of the ordinary.
I’m thinking I need to manually set the Report Viewer properties and then refresh it upon Window B open, but that kinda defeats the purpose of binding its parameters.