-
8 Nov 2012 8:41 AM #1
[4.1.3.548] On treestore reload : Cannot read property 'internalId' of undefined
[4.1.3.548] On treestore reload : Cannot read property 'internalId' of undefined
I've got it in my app with 4.1.1a, you can get it easily in xml tree online example just by using:
Code:document.getElementsByTagName('iframe')[0].contentWindow.Ext.ComponentManager.all.map['treepanel-1009'].store.reload()
-
8 Nov 2012 11:56 AM #2
-
8 Nov 2012 11:50 PM #3
-
9 Nov 2012 2:42 PM #4
Hi Vadim
I can not reproduce the issue from above url.
Can you double check it ?
Thanks
-
10 Nov 2012 12:10 AM #5
Kevin, checked a few times, I still get it, on chrome v23, macosx 10.6.8.
I just expand the "button" node, then in console I reload the store and I get that error, and then the button node gets frozen, I can collapsed it or expanded anymore.
The error is thrown in Ext.view.AbstractView.updateIndexs method, below the stack:
and where is thrown:Code:- [COLOR=red !important]Uncaught TypeError: Cannot read property 'internalId' of undefined ext-all.js:21[/COLOR]
- [COLOR=red !important]Ext.define.updateIndexes[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onAdd[/COLOR]ext-all.js:21
- [COLOR=red !important]b.implement.callParent[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onAdd[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.fire[/COLOR]ext-all.js:21
- [COLOR=red !important]continueFireEvent[/COLOR]ext-all.js:21
- [COLOR=red !important]fireEvent[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.insert[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onNodeExpand[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.fire[/COLOR]ext-all.js:21
- [COLOR=red !important]continueFireEvent[/COLOR]ext-all.js:21
- [COLOR=red !important]fireEvent[/COLOR]ext-all.js:21
- [COLOR=red !important](anonymous function)[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.apply.callback[/COLOR]ext-all.js:21
- [COLOR=red !important]read.callback[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.apply.callback[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onProxyLoad[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.processResponse[/COLOR]ext-all.js:21
- [COLOR=red !important](anonymous function)[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.apply.callback[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onComplete[/COLOR]ext-all.js:21
- [COLOR=red !important]Ext.define.onStateChange[/COLOR]ext-all.js:21
- [COLOR=red !important](anonymous function)[/COLOR]
Code:updateIndexes : function(startIndex, endIndex) { var ns = this.all.elements, records = this.store.getRange(), i; startIndex = startIndex || 0; endIndex = endIndex || ((endIndex === 0) ? 0 : (ns.length - 1)); for (i = startIndex; i <= endIndex; i++) { ns[i].viewIndex = i; ns[i].viewRecordId = records[i].internalId; // endIndex is bigger then lenght of the records array
Uncaught TypeError: Cannot read property 'internalId' of undefined
if (!ns[i].boundView) {
ns[i].boundView = this.id;
}
}
},
- [COLOR=red !important]Uncaught TypeError: Cannot read property 'internalId' of undefined ext-all.js:21[/COLOR]
-
12 Nov 2012 5:16 PM #6
This is only reproducible after you expand a node, no matter it is 'button' or 'app'
-
12 Nov 2012 5:27 PM #7
Thanks for the report! I have opened a bug in our bug tracker.
-
12 Nov 2012 11:42 PM #8
-
20 Nov 2012 7:06 AM #9
Is there any workaround, or override for this problem?
-
11 Dec 2012 1:22 AM #10
is this bug fixed in 4.2 beta ? I don't see it in release notes
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7743
in
4.2.0 Sprint 2.


Reply With Quote