While filtering data of big size, we have handled the filtering operation in server side by calling valuesMatchCriteria method of Evaluator class
if (ev.valuesMatchCriteria(objectAsMap, filterCrt)) {
itemsMatchingCriteria.add(record);
}
where ObjectAsMap = { imageField=null, productName=, pb=null}
and filterCrt = AdvancedCriteria:[and:[{productName isBlank}]]
Whenever the productName = "", valuesMatchCriteria doesnot returns true.
while if the productName = null, valuesMatchCriteria returns true and filters work.
We are using
<gwt.version>2.8.2</gwt.version>
<gwt.maven.plugin.version>1.0-rc-9</gwt.maven.plugin.version>
<smartgwt.version>6.1-p20170724</smartgwt.version>
if (ev.valuesMatchCriteria(objectAsMap, filterCrt)) {
itemsMatchingCriteria.add(record);
}
where ObjectAsMap = { imageField=null, productName=, pb=null}
and filterCrt = AdvancedCriteria:[and:[{productName isBlank}]]
Whenever the productName = "", valuesMatchCriteria doesnot returns true.
while if the productName = null, valuesMatchCriteria returns true and filters work.
We are using
<gwt.version>2.8.2</gwt.version>
<gwt.maven.plugin.version>1.0-rc-9</gwt.maven.plugin.version>
<smartgwt.version>6.1-p20170724</smartgwt.version>
Comment