PDA

View Full Version : Fields are not updated when a filtering store.



sinoptik
28 Jul 2011, 12:01 AM
I set a filter in the field "status":

this.store.filter('status', 1);
Then I update this field in the record:

r.set('status', 0);
this.store.sync();
Then i refresh the page, now status set to 0 and when filter is on the record nowhere shows
AND if i set record to 1 these fields do not change status.

I use Ext.data.WebStorageProxy if i set filter to field this field don't updated. =(

sinoptik
28 Jul 2011, 12:21 AM
Ok, I solved the problem. use Model.save

r.save();
and add to model:

proxy: {
type: 'localstorage',
id : 'my-store'
},
Ok, I update my records but now i have next problem: http://www.sencha.com/forum/showthread.php?140332-reapply-filter-after-changing-elements-in-a-store-list