Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

store

extjs

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

like image 658
Ramanavel Avatar asked Nov 23 '11 09:11

Ramanavel


1 Answers

You can use queryBy method

store.queryBy(function(record,id){
     return (record.get('oneField') == someValue && record.get('secondField') == otherValue);
});
like image 63
nscrob Avatar answered Oct 17 '22 13:10

nscrob