Data band filter: Expression Expected

Сonversation on different topics
Post Reply
cmoore
Posts: 2
Joined: Wed Feb 13, 2019 8:34 pm

Data band filter: Expression Expected

Post 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
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Data band filter: Expression Expected

Post by Lech Kulikowski »

Hello,

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

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

Thank you.
cmoore
Posts: 2
Joined: Wed Feb 13, 2019 8:34 pm

Re: Data band filter: Expression Expected

Post 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
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Data band filter: Expression Expected

Post by Lech Kulikowski »

Hello

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

Thank you.
Post Reply