Filter using a expression in a range of variables

Stimulsoft Reports.NET discussion
Post Reply
Chmartin571
Posts: 1
Joined: Mon Dec 16, 2013 3:03 pm

Filter using a expression in a range of variables

Post by Chmartin571 »

Hello,

I was wondering if anyone can help me. I am having problems using the expressions filter on the Databands. I am trying to display the information for only a few different country instead of the whole list that I have in my SQL database. Some of the countries are China, Japan, US, Thailand, Germany, Poland, Netherlands, Slovak Republic.. etc. In my report i only want to show let’s say China, Japan, Thailand and a few more Asian countries. Can i do this using an expression? I know I can do the Value and string to the column. Ive been trying

Code: Select all

((China) || (Japan)) 
or things with && and ||. I know a lot of html however not to C++ or java savvy which I think might the reasoning for my hard time with this expression problem.

Thank You
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Filter using a expression in a range of variables

Post by HighAley »

Hello.

You could create a SQL query or use C# or VB.NET syntax in the Filter property depending on Script Language of the report.
We need additional information about your issue to give you more detailed answer.

Thank you.
Post Reply