Page 1 of 1

Data band filter: Expression Expected

Posted: Wed Feb 13, 2019 8:47 pm
by cmoore
I am attempting to filter the databand based on user selection.
I went through the tutorial here:
https://www.stimulsoft.com/en/videos?ta ... &type=list
This is exactly what I want. I believe I have the variables correct. 99% sure anyway.
The trouble is in the filter expression. "Products.RoomName == SelectedSeriesOnly | AllSeries"
I have tried this: "Products.RoomName = SelectedSeriesOnly | AllSeries" as well.
I'm guessing that the version this video was made with, and the version I'm using are different. Stands to reason that maybe the language changed a little.
DO I have a syntax issue here?
Thanks in advance!
Version 2017.1.6

Re: Data band filter: Expression Expected

Posted: Thu Feb 14, 2019 10:46 pm
by Lech Kulikowski
Hello,

You should use the following expression:
"Products.RoomName = SelectedSeriesOnly || AllSeries"

https://demo.stimulsoft.com/#Net/Parame ... ingCountry

Thank you.

Re: Data band filter: Expression Expected

Posted: Fri Feb 15, 2019 12:32 pm
by cmoore
Thank you for your response!
I actually cam up with one I like more.
I used this expression in the filter "SelectedSeriesOnly.contains(Products.RoomName)"
Changed my variable "SelectedSeriesOnly" "to list", and removed the variable "AllSeries"
This loads all possible selections by default, and allows the user to select any combination they want from it.

Thanks again!
Chris

Re: Data band filter: Expression Expected

Posted: Fri Feb 15, 2019 1:21 pm
by Lech Kulikowski
Hello

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

Thank you.