Hi Everyone,
I have a Report Studio report with 6 prompts in prompt page. When I run the report the first time, I have to pick all 6 prompt values. But if I rerun the report again, all the prompts wouldn't keep the values I just selected, it just get reset. So is there a way to get the report to remember the previously selected prompt values? That way the user wouldn't have to reselect the values one by one again when he/she reruns the report.
That depends on what you mean by "rerun".
If the user closes the report and opens it again, the parameter values are lost. You can devise a solution such that when the Finish button is clicked, an AJAX call can be made to a program that persists the report path, user name, and parameter values. The next time the report is opened, an AJAX call can be made to a program that returns the parameters for that report/user. This solution may not survive an upgrade.
If the user has the report open and clicks on the "play" button, parameter values should not have changed or been deleted. There is probably some JavaScript-based customization in the report that is resetting the values. Remove the JavaScript from the report and the report should keep the parameter values from one run to the next.
Thanks DougP.
If the wanted parameter values are the same every time you run the report, you can also try setting them in report properties through Cognos connect? ("More..." -> Set properties & find the link to set prompt values)
Is "Clear Parameter Values" option in the "File" property will help?