COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: mohsin2010 on 28 Dec 2010 11:39:20 PM

Title: Filter Report At Run Time !
Post by: mohsin2010 on 28 Dec 2010 11:39:20 PM
HI,
     I have generated report that is showing the employee information i want to filter the employee data according to the "CITY" and i have done it  well but my requirement is that how do i filter that data at run time  ???

thanks in advance  :)
Title: Re: Filter Report At Run Time !
Post by: MFGF on 29 Dec 2010 05:20:20 AM
Quote from: mohsin2010 on 28 Dec 2010 11:39:20 PM
HI,
     I have generated report that is showing the employee information i want to filter the employee data according to the "CITY" and i have done it  well but my requirement is that how do i filter that data at run time  ???

thanks in advance  :)

Do you mean you want the report to prompt the user for the required cities at runtime? If so, change your filter expression to use a parameter.

Eg. [city] in ?cityparam?

Regards,

MF.
Title: Re: Filter Report At Run Time !
Post by: sir_jeroen on 30 Dec 2010 05:41:09 AM
if the city is stored in your authentication source (e.g. Active Directory) you could use this value using a macro
e.g. something like [city]= #sq($account.personalInfo.city)# (<= This parameter must be manually added to your cognos configuration)
Title: Re: Filter Report At Run Time !
Post by: mohsin2010 on 02 Jan 2011 11:33:11 PM
HI!
    while creating filter in Tex box prompt i gave parameter name and select operator " in "  the next button remain disable ??? what am i doing wrong ??
  ???
Title: Re: Filter Report At Run Time !
Post by: MFGF on 03 Jan 2011 05:03:58 AM
Nothing. There is no next page to go to. Just press Finish.