COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: ghostraider on 30 Apr 2008 09:05:10 AM

Title: Picklist Prompt in Framework
Post by: ghostraider on 30 Apr 2008 09:05:10 AM
Can someone help me with how to implement picklist in Framework Manager? I have created a new namespace added a calculation item and in the expression i chose 'promptmany'. My user has a list of names that he uses, he wants me to display all the names in the list and he will select any names he wants based on his needs. How can this be accomplished?

Thank You!!
Title: Re: Picklist Prompt in Framework
Post by: raro on 15 May 2008 05:05:31 AM
1. Create a QS: PickList_Names with two columns for Shown and Filter
   .. in Where-Clause apply a filter that cuts down the picklist to user allowed
       e.g.
      SELECT PicklistShowID, PicklistFilterID FROM names n
      WHERE
      upper(n.USERID) = UPPER(#sq($account.personalInfo.userName)#  )

2. in any "picked" QS have a Where-Clause:
WHERE ...
NAME in ( #promptmany (  'Your names','character','','','[your_datasource].[PickList_Names].[PicklistFilterID]')# )