Page 1 of 1

Using List Type Variable in query

Posted: Wed Nov 06, 2019 2:40 pm
by harundemir13
Hello,
I am using a list type variable in the report. I can filter the report while I wrote the variable.Contains() expression to DataBand Filters. I want to use this structure in data source query. I tried this solution but it didn't work.

Thank you,

Re: Using List Type Variable in query

Posted: Thu Nov 07, 2019 9:55 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Using List Type Variable in query

Posted: Tue Nov 12, 2019 8:08 am
by harundemir13
Hello,
Sorry for the late reply. I found something and I tried, it worked. This script part is in Edit Data Source.
{var1.Count == 0 ? "" :"where id in ("+var1.ToQueryString("'")+")"}
Thanks.

Re: Using List Type Variable in query

Posted: Tue Nov 12, 2019 8:37 am
by Lech Kulikowski
Hello

Ok.
Please let us know if you need any additional help.

Thank you.