COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: MikeG on 04 Mar 2015 08:19:52 AM

Title: Can you use a member set as a static prompt choice ?
Post by: MikeG on 04 Mar 2015 08:19:52 AM
I have created 2 data items in the query as member sets

Cars   set (car A, car B, car C)

Other Cars (set (car X, car Y, car Z)

The user wants a report with a prompt where he can select one of the 2 membersets.

I put in a value prompt, opened a new static choice, it wants a Mun value in the Use box and the membersets don't have Muns , what can I do ?

thanks Mike
Title: Re: Can you use a member set as a static prompt choice ?
Post by: BigChris on 04 Mar 2015 08:58:03 AM
Have you based your value prompt on a query? If you just want to make the user choose either "Set A" or "Set B" then it doesn't need a query behind it.
Title: Re: Can you use a member set as a static prompt choice ?
Post by: MikeG on 04 Mar 2015 09:30:15 AM
Hi,

Yes in the query I added the Car type = ?parameter1?  otherwise without a query it would not be able to pull back the 10 columns of data relating to the picked memberset
Title: Re: Can you use a member set as a static prompt choice ?
Post by: rockytopmark on 04 Mar 2015 10:31:09 AM
1. Change Value Prompt to NOT be associated with a query
2. Add 2 static values: 
  -  Use: C, Display: Cars
  -  Use: O, Display: Other Cars
3. Create a data item for the row edge in the layout
case
when ?pParameter? = 'C' then set(car1, car2, etc)
else set(carX, carY, etc)
end
Title: Re: Can you use a member set as a static prompt choice ?
Post by: BigChris on 05 Mar 2015 01:59:28 AM
Thanks rockytopmark - that's what I was driving at (no pun intended), but I didn't have time to properly elaborate.
Title: Re: Can you use a member set as a static prompt choice ?
Post by: MikeG on 06 Mar 2015 03:46:35 AM
Thanks guys

worked a treat, job done