From the documentation...
Note References to columns inside the EXPR attribute cannot be specified by meta tags.
Well, I was most certianly specifying my colum references by a meta tag...
I was doing the following...
<@assign
scope=Method
name=FilterExpression
value="(#11=<@var Method$DC_ProductID>) <@ifempty <@var Method$DC_minQuantity>><@else> && (#12>=<@var Method$DC_minQuantity>)</@if><@ifempty <@var Method$DC_maxQuantity>><@else> && (#12<=<@var Method$DC_maxQuantity>)</@if>">
<@assign scope=Method name=Matches value=<@filter array=Products scope=Method expr="<@var Method$FilterExpression>">>
As you'll see I only want to compare column #12 if the variables i'm comparing them to aren't empty. However this is going to be impossible, because there would be no way to conditionally compare to a given column with the rule quoted from the docs above.
I think the only way I'm going to be able to do this is by doing multiple filters, each one filtering the results from the previous filter.
/John
John McGowan wrote:
I don't have to use the @filter tag very often, but when I do, it's always a pain in the rear.
There's always seems to be something wrong with my filter expressions that I can't see.
For example, right now i'm getting the following error.
-18 Error during expression evaluation. Illegal symbol in statement [(#11=1294) && (#12>=3)]
What could possibly be wrong with that expression?
/John
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
