Search code examples
extjsstore

In Extjs store can we query with 2 columns and 2 values?


I am using extjs(3.6) store.

In that we can query with single column and a value, I need to query with multiple columns and multiple values.

Please suggest any methods available in extjs?

Thanks in advance,

Ramanavel Selvaraj


Solution

  • You can use queryBy method

    store.queryBy(function(record,id){
         return (record.get('oneField') == someValue && record.get('secondField') == otherValue);
    });