COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: v2k4u on 06 Jan 2014 02:50:45 PM

Title: How can we select single prompt in multiple prompts report and run the report?
Post by: v2k4u on 06 Jan 2014 02:50:45 PM
Hi Cognos Gurus,

I have a quick question in the Multiple prompts report.
I have created 3 different prompts on a single prompt page and i wanted to give it as an OR condition between those 3 prompt conditions.
For ex:
First prompt condition is to select a Employee Number- i have created Select and Search prompt for this one
Second prompt is to select a Department Number- i have created Select and Search prompt for this one as well.
Third prompt is the combination of Employee Name and Employee State- i have created Select and Search for Employee Name and created Value prompt for Employee State.

My question is if the user selects any one of the conditions the report should run, so basically it has to be an OR condition i am supposing.
My problem is that until and unless i provide all 3 prompt conditions the reports is not running.

So need some help on this. Thanks in advance
Title: Re: How can we select single prompt in multiple prompts report and run the report?
Post by: HDA on 06 Jan 2014 04:06:38 PM
Are the prompts set as Required or Optional ? Do you have any default selections defined for the prompts ?
Title: Re: How can we select single prompt in multiple prompts report and run the report?
Post by: v2k4u on 07 Jan 2014 09:30:32 AM
The prompts are required.There are no default selections for defined prompts.
I want the report to run for whichever prompt i select, i mean it is supposed to show the Finish Button ven if i select 1 prompt out of the 3 exisiting prompts.
Title: Re: How can we select single prompt in multiple prompts report and run the report?
Post by: Lynn on 17 Feb 2014 12:43:31 PM
If a prompt is required and has no default selection then the user must provide a response or you must provide a default. You can't have it both required and optional.

Try adding a dummy default value and then adapting your filter to account for those situations.

( [Emp Number] = ?SelectEmpNumber? and ?SelectEmpNumber? <> -1 )
or
( [Dept Number] = ?SelectDptNumber? and ?SelectDptNumber? <> -1 )
etc.....
Title: Re: How can we select single prompt in multiple prompts report and run the report?
Post by: Francis aka khayman on 17 Feb 2014 08:38:34 PM
you can give the prompt a default value in cognos connection.