PDA

View Full Version : DataModel.query() For A 0-Length String



thejoker101
17 Nov 2006, 8:06 AM
Query seems to just ignore exact matching for a 0-length string, ex:



values[0] = 'test';
values[1] = '';

var relatedRows = Grid.dataModel.query({0: values[0], 1: values[1]});

This is effectively the same as this:


var relatedRows = Grid.dataModel.query({0: values[0]});

Is this by design or is this a bug?

jack.slocum
17 Nov 2006, 8:49 AM
if(row[col] != filter){
isMatch = false;
}

There's not much that can go wrong there. Are you sure your data is an empty string?