COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: konesens on 26 Oct 2013 12:52:32 PM

Title: difference between prompt page and prompt in filter
Post by: konesens on 26 Oct 2013 12:52:32 PM
Hello,

When I try to filter through a prompt using detail filter ([product] = ?select product?) it doesn't work (no data)but If I do it through a prompt page using a value prompt then the result is correct.

Does anyone could explain why and maybe give recommendation on prompt page vs prompt in detail filters.

Thanks
Title: Re: difference between prompt page and prompt in filter
Post by: MFGF on 26 Oct 2013 01:57:37 PM
What kind of package are you using - relational or dimensional?

It's possible you have a prompt info details defined in your package which control how a defined prompt works - what are you filtering on and what is being displayed in the propmpt?

MF.
Title: Re: difference between prompt page and prompt in filter
Post by: konesens on 26 Oct 2013 02:32:58 PM
Hi MF,

I'm using the Sales namespace within GO datawarehouse (query) sample.

I am filtering product to display associated orders.

Title: Re: difference between prompt page and prompt in filter
Post by: MFGF on 27 Oct 2013 10:22:13 AM
Hi,

I suspect either leading or trailing blanks in the parameter. What happens if you modify the filter to

[product] = trim(?select product?)

MF.
Title: Re: difference between prompt page and prompt in filter
Post by: konesens on 27 Oct 2013 10:50:01 AM
Thanks MF,
Adding the trim fix the problem but now the prompt doesn't display the drop down list , I have to type the product name.

Title: Re: difference between prompt page and prompt in filter
Post by: MFGF on 27 Oct 2013 10:56:23 AM
Ok - so the issue is embedded blanks. It's probably as a result of the underlying data type of the Product item.

The simple answer is to add a prompt. This has many advantages, one of which is that you have absolute control of how and where the prompt appears.

Cheers!

MF.
Title: Re: difference between prompt page and prompt in filter
Post by: konesens on 27 Oct 2013 01:36:05 PM
Thanks for your help ! have a good sunday.