Variable Separator in Filters

Stimulsoft Reports.WEB discussion
Post Reply
JohnW
Posts: 103
Joined: Mon Nov 20, 2017 8:29 pm

Variable Separator in Filters

Post by JohnW »

I am new to Stimulsoft Reports. I have been trying to follow a video on the site explaining how to set a simple list with a Country parameter.

I have tried to duplicate the process but using state instead of countries. In my filter expression I have the following:
states_list.state_abbr = State | AllStates

I get an error that there is an illegal character in the filter. It appears to not like the " | " symbol. I have looked in the documentation and the forum. Based on the video this appears to be correct but its not working.

What should be the proper syntax for VB.Net or C#. I just can't seem to find it.

Thanks

JohnW
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Separator in Filters

Post by HighAley »

Hello, John.

Please, try to use || if you are using C# report language

Code: Select all

states_list.state_abbr = State || AllStates
or this expression if you are using VB report engine:

Code: Select all

states_list.state_abbr = State OR AllStates
Thank you.
JohnW
Posts: 103
Joined: Mon Nov 20, 2017 8:29 pm

Re: Variable Separator in Filters

Post by JohnW »

Thanks I will give that try.

I tried the VB method and it works. Now I can build from there.

Thanks again for the help!
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Variable Separator in Filters

Post by Andrew »

We are glad to help you, John!
Post Reply