PDA

View Full Version : Store bound to a List makes List fail when a store.insert() is called.



vgribok
19 Apr 2011, 7:26 AM
Using ST 1.1.

Can successfully populate a store and then bind it to a list. However, when attempting to call store.insert(index, modelinstance) after a store is bound to a list, an exception below occurs. The code that fails expects a model record to have associations collection to be defined while it's not. At this point store.insert() is useless unless I rebuild and rebind the store. It's a pretty severe problem if it's a bug.

Call Stack:

Uncaught TypeError: Cannot read property 'items' of undefined
Ext.DataView.Ext.extend.prepare AssociatedDatasencha-touch-debug.js:22665
Ext.DataView.Ext.extend.prepare Datasencha-touch-debug.js:22655
Ext.DataView.Ext.extend.collect Datasencha-touch-debug.js:22712
Ext.List.Ext.extend.collect Datasencha-touch-debug.js:23527
Ext.DataView.Ext.extend.bufferRender sencha-touch-debug.js:22721
Ext.DataView.Ext.extend.onAdds encha-touch-debug.js:22751
Ext.List.Ext.extend.onAdd sencha-touch-debug.js:23570
fire sencha-touch-debug.js:979
Ext.util.Observable.Ext.extend.fireEvent sencha-touch-debug.js:595
Ext.data.Store.Ext.extend.insert sencha-touch-debug.js:6913
Views.DalTestView.Ext.extend.CreateNewRecordEntity DalTestView.js:244


All the best,
Vlad.

8dot3
28 Oct 2011, 11:06 AM
I have the same exact issue at the moment.

Jay Tanwar
19 Dec 2011, 6:25 AM
Can you post some code for reference..