I'm using a SQL data source in the EE eval version (SmartClient Version: SC_SNAPSHOT-2010-06-25/EVAL ). I have a simple sql data source xml file defined with just field entries. I'm trying to set criteria for the fetch to ignore null values in two of the fields. I have created a Criterion object and added two criteria entries using OperatorId.IS_NULL with a boolean value of false. Next is a call to fetch( criteria ) on the ListGrid using the Criterion object. The result is that all rows are retrieved and the filter criteria is ignored. Along the way there is a log entry that says:
setProperties: couldn't set:
{
context:"No such property"
}
When I use a Criteria object, the filtering works (but the setProperties error is still there?) The Criteria object doesn't provide for filtering out null values through. If I'm missing something please advise. This will be deployed in a Pro environment so Custom SQL is not an option (I had set up a WHERE clause in the original of this data source which worked correctly). I can work around this with a custom data source object and apply the required filtering using SQL - but hopefully that won't be necessary as it defeats the simplicity of the built-in datasource.
setProperties: couldn't set:
{
context:"No such property"
}
When I use a Criteria object, the filtering works (but the setProperties error is still there?) The Criteria object doesn't provide for filtering out null values through. If I'm missing something please advise. This will be deployed in a Pro environment so Custom SQL is not an option (I had set up a WHERE clause in the original of this data source which worked correctly). I can work around this with a custom data source object and apply the required filtering using SQL - but hopefully that won't be necessary as it defeats the simplicity of the built-in datasource.
Comment