COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: lahdeb on 27 Dec 2017 03:50:50 AM

Title: Conditionnal display
Post by: lahdeb on 27 Dec 2017 03:50:50 AM
hello every one , and happy Noel ,

Can you please help me to display list colonne depending on selected prompt :

For ex:In my liste I want to show just information related to a specific brand in a specific store : for example , if I select brand Nike / store X , I will show in my liste just information related to Nike in the store X.

Information shown for each brand are : price by type of clothes , nb of articles available ....

Thank you
Title: Re: Conditionnal display
Post by: Lynn on 27 Dec 2017 05:03:34 AM
Quote from: lahdeb on 27 Dec 2017 03:50:50 AM
hello every one , and happy Noel ,

Can you please help me to display list colonne depending on selected prompt :

For ex:In my liste I want to show just information related to a specific brand in a specific store : for example , if I select brand Nike / store X , I will show in my liste just information related to Nike in the store X.

Information shown for each brand are : price by type of clothes , nb of articles available ....

Thank you

How about this:

I wouldn't call this conditional display since it is just filtering a query to limit the result set. If I've misunderstood the requirement feel free to elaborate.
Title: Re: Conditionnal display
Post by: lahdeb on 28 Dec 2017 03:29:52 AM
Thanks Lynn for your replay ,

The purpose is not to filter data ,it is about displaying or hiding list column , I m doing this with boolean Variabls , but I want to do better :)
Title: Re: Conditionnal display
Post by: Invisi on 03 Jan 2018 07:58:34 AM
Why is showing or hiding a column not a filter?
Title: Re: Conditionnal display
Post by: lahdeb on 03 Jan 2018 10:05:37 AM
Invisi , Filter is for data , Variabls are for chart formas and conditional style :)
Title: Re: Conditionnal display
Post by: Invisi on 05 Jan 2018 02:14:30 AM
For me it's still limiting the result of data that you describe, so ultimately it's a filter.
Title: Re: Conditionnal display
Post by: Michael75 on 05 Jan 2018 03:33:56 AM
QuoteFor me it's still limiting the result of data that you describe, so ultimately it's a filter.

No, Lahdeb is correct. A filter is reflected in the WHERE clause in the generated SQL, and therefore affects the returned result set.

Here, according to Lahdeb's second post, we're not talking about changing the result set. The requirement is to change the way in which the SAME result set is displayed in the report.
Title: Re: Conditionnal display
Post by: Lynn on 05 Jan 2018 03:42:14 AM
The original post sounded more like filtering but a subsequent post mentions showing or hiding list columns.

I didn't respond further because lahdeb indicated it is already resolved using Boolean variables. The comment "but I want to do it better" implies there is something wrong or less than ideal with the current approach but there is no further explanation of what the concern is. I tend to use Boolean variables in the render property for a list column. Job done.