var in a data band filter

Stimulsoft Reports.PHP discussion
Post Reply
3inweb
Posts: 9
Joined: Sun Mar 11, 2012 11:29 am
Location: Spain

var in a data band filter

Post by 3inweb »

Hello. I'm trying to filter data in a band only those records that start string value of a variable and can not get it to work.

The filter is:

Image

How should I do? This don't work

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

Re: var in a data band filter

Post by HighAley »

Hello.

You should change the El Campo es from Valor to Expresión.

Thank you.
3inweb
Posts: 9
Joined: Sun Mar 11, 2012 11:29 am
Location: Spain

Re: var in a data band filter

Post by 3inweb »

Thanks for your response. I've tried but I do not know how to use the operator Starswith. I performed various tests and no it has worked.

Could you help me on how to write this expression?.

Thanks in advance.

greetings

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

Re: var in a data band filter

Post by HighAley »

Hello.

You could use there expression like next:

Code: Select all

Products.ProductName.ToLower().ToString().StartsWith(Variable1)
Thank you.
3inweb
Posts: 9
Joined: Sun Mar 11, 2012 11:29 am
Location: Spain

Re: var in a data band filter

Post by 3inweb »

Many Thanks Aleksey.

It works perfectly and now I understand the construction of expressions.

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

Re: var in a data band filter

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply