You can Query Multiple Columns instant of using one column
store.queryBy(function(record,id){ return (record.get('oneField') == someValue && record.get('secondField') == otherValue); });
and also you can add number of variables using '&&' or '||' conditions
Example:
eventStore.queryBy(function(record,id){
return (record.get('StartDate') >= (new Date()).clearTime().add(Date.HOUR,3) && record.get('EndDate') <= (new Date()).clearTime().add(Date.HOUR,10));
});
No comments:
Post a Comment