COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Modtamod on 05 Feb 2008 10:43:46 AM

Title: Prompt Select ALL
Post by: Modtamod on 05 Feb 2008 10:43:46 AM
I have a multi select value prompt. I know that user can always click on the the Select All option if they want to run it all. However what I want to do is that by Default all the the items on the prompt are All Checked or Selected. I know that in report studio if you have an optional multi select prompt and you did not select anything it will run for everything. But i wanted to show it to the user that once they run the report they can see all the items are checked. How do I do it?
Title: Re: Prompt Select ALL
Post by: almeids on 05 Feb 2008 11:31:14 AM
You may be able to do it with javascript in an html item.  Another option is to add a static option (e.g. 'ALL') to your prompt, set it as the default, and change your filter to ([item] in (?param?)) or (?param?='ALL').
Title: Re: Prompt Select ALL
Post by: tmacfarlane on 05 Feb 2008 03:48:11 PM
Hello, I would also investigate the route of adding an html item with a .js reference.  On the page load you could select all items contained in the control's collection.
Title: Re: Prompt Select ALL
Post by: jahnavi on 06 Feb 2008 12:38:42 AM
add a filter like item=?parameter value? or ?parameter value?='all'
so that it can show single value based on your requirement or it will show all values