COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: cognosun on 12 Aug 2013 04:52:21 AM

Title: Value prompt - Select All - Finish button
Post by: cognosun on 12 Aug 2013 04:52:21 AM
Hi Gurus,

I have a value prompt with some values in it...

My requirement is if we click on the "Select All" option ( under value prompt box)... the 'FINISH' button in page footer should be disabled.

Can any one share the Javascript for the same.

Many thanks
Title: Re: Value prompt - Select All - Finish button
Post by: cognosun on 12 Aug 2013 09:41:26 AM
No idea !!!

:-)
Title: Re: Value prompt - Select All - Finish button
Post by: sir_jeroen on 12 Aug 2013 11:39:03 AM
Cognos 10.2 Prompt API??? That should do the trick...
Title: Re: Value prompt - Select All - Finish button
Post by: CognosPaul on 12 Aug 2013 12:23:45 PM
This is a difficult requirement.

How does the Finish button become reactivated, when an option is selected? What happens if you have two selects? You'll need to loop through all of the options in all of the prompts to ensure that there are no prompts with all values selected. This can get slow.

How about removing the select all link entirely?
Title: Re: Value prompt - Select All - Finish button
Post by: Lynn on 12 Aug 2013 12:44:39 PM
So if they selected everything and deselected just one or two then it would be ok to run?

If the intent is to prevent a report from running with too many things selected then perhaps create a variable in the report that uses ParamCount compared with total number of available choices. Then render a page with an error message of some sort.