brontd
5 Dec 2011, 2:21 PM
I have a store from which I need to remove certain records before I display the data. The store is loaded, and I can iterate over the set, but I am having trouble calling remove() on the appropriate records. If I read the set into a variable, I can make the necessary deletions, but the iteration is really slow.
var s = this.getStore('myStore');
s.each(function(record) {
s.remove(record);
changed = true;
});
... and if I chain the methods, I can't seem to access the record.
this.getStore('myStore').each(function(record) {
this.remove(record);
});
Am I missing something simple or am I going about this the wrong way? Thanks for your help.
var s = this.getStore('myStore');
s.each(function(record) {
s.remove(record);
changed = true;
});
... and if I chain the methods, I can't seem to access the record.
this.getStore('myStore').each(function(record) {
this.remove(record);
});
Am I missing something simple or am I going about this the wrong way? Thanks for your help.