If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Remember the prompt values when rerun report

Started by nyl46243, 05 Aug 2016 10:36:54 AM

Previous topic - Next topic

nyl46243

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.

dougp

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.


Varapaavi

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)

Kid_in_Cognos

Is "Clear Parameter Values" option in the "File" property will help?