Page 1 of 1

var in a data band filter

Posted: Sun Sep 16, 2012 10:23 pm
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

Re: var in a data band filter

Posted: Mon Sep 17, 2012 7:34 am
by HighAley
Hello.

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

Thank you.

Re: var in a data band filter

Posted: Mon Sep 17, 2012 12:49 pm
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

Re: var in a data band filter

Posted: Tue Sep 18, 2012 9:25 am
by HighAley
Hello.

You could use there expression like next:

Code: Select all

Products.ProductName.ToLower().ToString().StartsWith(Variable1)
Thank you.

Re: var in a data band filter

Posted: Tue Sep 18, 2012 11:56 pm
by 3inweb
Many Thanks Aleksey.

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

Thanks again

Re: var in a data band filter

Posted: Wed Sep 19, 2012 8:09 am
by HighAley
Hello.

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

Thank you.