Page 1 of 1

Variable Separator in Filters

Posted: Mon Nov 20, 2017 8:37 pm
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

Re: Variable Separator in Filters

Posted: Mon Nov 20, 2017 9:04 pm
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.

Re: Variable Separator in Filters

Posted: Mon Nov 20, 2017 9:47 pm
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!

Re: Variable Separator in Filters

Posted: Tue Nov 21, 2017 3:29 pm
by Andrew
We are glad to help you, John!