COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: DJ on 19 Jul 2023 08:06:06 AM

Title: Finding an Exact match using Select and Search prompt
Post by: DJ on 19 Jul 2023 08:06:06 AM
Hi,
I am using Select and Search Prompt in my Cognos report and I wanted to know if it is possible to get only the exact match of the search string that I provide.
For eg: i search for 123 and i want only 123 to be returned. Now I'm all the below 3 values.
123
1234
12345

Thanks in advance,
DJ.
Title: Re: Finding an Exact match using Select and Search prompt
Post by: cognostechie on 19 Jul 2023 02:27:03 PM
Right under the Prompt there are options. I don't have it in front of me right now but I remember there are options to specify what kind of match you want.
Title: Re: Finding an Exact match using Select and Search prompt
Post by: DJ on 20 Jul 2023 01:13:34 AM
Only the following options are available, but not for selecting ONLY the exact string.

Starts with any of these keywords
Starts with the first keyword and contains all of the remaining keywords
Contains any of these keywords
Contains all of these keywords

But I want only 123 to be returned when I search for 123.
With any of the above options it is not possible.

Thanks,
DJ.
Title: Re: Finding an Exact match using Select and Search prompt
Post by: dougp on 20 Jul 2023 10:26:24 AM
That's not what a Select & Search prompt is for.  Maybe you should be using a textbox prompt.