Results 1 to 10 of 11

Thread: [4.1.3.548] On treestore reload : Cannot read property 'internalId' of undefined

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7743 in 4.2.0.265.
  1. #1
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default [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()
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  2. #2
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Vote Rating
    6
      0  

  3. #3
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default

    Quote Originally Posted by kevin.chen View Post
    yes.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  4. #4
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Vote Rating
    6
      0  

    Default

    Hi Vadim

    I can not reproduce the issue from above url.

    Can you double check it ?

    Thanks

  5. #5
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Vote Rating
    50
      0  

    Default

    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:
    Code:
    • [COLOR=red !important]Uncaught TypeError: Cannot read property 'internalId' of undefined ext-all.js:21[/COLOR]
    and where is thrown:
    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 arrayUncaught TypeError: Cannot read property 'internalId' of undefined
    
    
    
                if (!ns[i].boundView) {
                    ns[i].boundView = this.id;
                }
            }
        },
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  6. #6
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Vote Rating
    6
      0  

    Default

    This is only reproducible after you expand a node, no matter it is 'button' or 'app'

  7. #7
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Vote Rating
    6
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •