0
我看到这个问题,我想更进一步 https://stackoverflow.com/questions/18606212/store-filter-in-sencha-touch#=商店滤波器(多个项目)
现在我测试的是这样的:
TABLEVIEWSTORE1.filter("name", name);
TABLEVIEWSTORE1.load({callback: function(){
tableviewstore2.load({callback: function(){
TABLEVIEWSTORE1.each(function(item){
tableviewstore2.filterBy(function(record,id){
return record.get("number") == item.get("number");
}, this);
});
TABLEVIEWSTORE1.load({callback: function(){
tableviewstore2.load({callback: function(){
// DO MORE THINGS
}});
}});
}});
}});
});
有没有人一个想法,它如何工作正常吗?
它的工作原理。非常感谢你:) 我只改变了 Ext.Array.include(uniqueNumbers,item.get(“number”)); – kadddah