Sencha Touch Store Add replaces record 1
I extended an Ext.data.Store (i.e users with model user) but when I
iterate over custom JSON response and add each record, it replaces the
first record and so the store consist of just one record instead of many
Here is my code (in image format) notice in line 215 i added a model on
store on each iteration:
And here is the console output w/c only shows 1 on getCount():
I tried many solutions, and that includes changing the 'id' attribute to
something else and also differ my user model to users model
But I have another store that is adding fine without problems.
No comments:
Post a Comment