Forum /
Ext JS Community Forums 4.x /
Ext: 4.x Beta /
Ext: 4.2.0 Beta: Object [object Object] has no method 'filterBy'
Ext: 4.2.0 Beta: Object [object Object] has no method 'filterBy'
I'm getting the following error while calling sync() on a buffered store:
....
Uncaught TypeError: Object [object Object] has no method 'filterBy' ext-all-debug.js:65308
Ext.define.getNewRecords ext-all-debug.js:65308
Ext.define.sync ext-all-debug.js:61855
buffer-grid.js:124
Ext.define.fireHandler ext-all-debug.js:43790
Ext.define.onClick ext-all-debug.js:43780
Ext.apply.createListenerWrap.wrap ext-all-debug.js:10303
...
code:
var store = Ext.create('Ext.data.Store', {
id: 'store',
buffered: true,
pageSize: 5000,
model: 'Employee',
proxy: {
type: 'ajax',
method : 'GET',
api: {
read: 'getEmployees.xml',
update: 'setEmployees.html'
},
reader: {
root: 'employees',
record: 'employee',
type: 'xml'
},
writer: {
documentRoot: 'employees',
record: 'employee',
type: 'xml',
writeAllFields: false
}
}
});
After some investigation on my own I noticed that a buffered store uses Ext.util.LruCache which lacks the method filterBy that Ext.util.AbstractMixedCollection has, which seems to be used on a non-buffered store.
Can someone confirm if this is a bug or if I'm doing this the wrong way?
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us