COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: DayTripper3 on 16 Feb 2010 09:53:09 AM

Title: HTML button for Clearing selections made in Filters
Post by: DayTripper3 on 16 Feb 2010 09:53:09 AM
Hello,
I am throwing this out here to see if there is a way to do it:
Issue:

Customer wants to have prompt filters on the same page as the report. When they want to reset the filters, they don't want to click Deselect All..and sometimes depending if they have already generated the report once or twice, there isn't much left to choose. I guess I want a refresh, but not for the browser. Something that refreshes the prompts with all previous selections deselected.

Besides telling them that this isn't Excel we are at a loss on how to keep it all on one page.

Thanks!
Title: Re: HTML button for Clearing selections made in Filters
Post by: paddhu on 16 Feb 2010 11:14:43 PM
If I have understood your query right, you want a means of refreshing your report page by resetting the prompts. If this is the requirement, you can build a html button interface using HTML item and script a onclick() JavaScript fragment to rerun the report with blank prompts.
Title: Re: HTML button for Clearing selections made in Filters
Post by: eliza_jane on 18 Feb 2010 01:49:21 AM
You could use the Javascript provided in the below link.

http://cognosandme.blogspot.com/2010/02/javascript-to-deselect-value-prompt-box.html