Page 1 of 1

LIKE search requested from user

Posted: Thu Oct 10, 2024 2:11 pm
by brightsg
How can I request a Variable from the user and then execute the filter LIKE the supplied Value?

So, I create a string variable 'SearchName' and set to request from user, what do I need to put in the filter in the databand on the report to filter the CompanyName column?

I have tried SearchName.Contains(CompanyName) and CompanyName.Contains(SearchName) neither work. I know how to do this picking a value from a list, but I want the user to be bale to type a partial name and find matches.

Thanks

Re: LIKE search requested from user

Posted: Thu Oct 10, 2024 3:36 pm
by Lech Kulikowski
Hello,

You can use the following expression:
ToLowerCase(DataSourceName.ColumnName).Contains(ToLowerCase(VariableName))

Thank you.