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

Value prompt - Select All - Finish button

Started by cognosun, 12 Aug 2013 04:52:21 AM

Previous topic - Next topic

cognosun

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


sir_jeroen

Cognos 10.2 Prompt API??? That should do the trick...

CognosPaul

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?

Lynn

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.