Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    18
    Vote Rating
    0
    sora is on a distinguished road

      0  

    Lightbulb [FIXED-EXTJSIV-1071] getRecords

    [FIXED-EXTJSIV-1071] getRecords


    Hello,

    im found a bug in getRecords, the return is records not r.


    PHP Code:
        /**
         * Gets an array of the records from an array of nodes
         * @param {Array} nodes The nodes to evaluate
         * @return {Array} records The {@link Ext.data.Model} objects
         */
        
    getRecords: function(nodes) {
            var 
    records = [],
                
    0,
                
    len nodes.length;

            for (; 
    leni++) {
                
    records[records.length] = this.store.data.getByKey(nodes[i].viewRecordId);
            }

            return 
    r;
        }, 
    You can use extend for fixed

    PHP Code:
    Ext.tree.TreeView.extend({
        
    getRecords: function (nodes) {
            var 
    records = [];

            for (var 
    0ilen nodes.lengthileni++)
                
    records[records.length] = this.store.data.getByKey(nodes[i].viewRecordId);
            
            return 
    records;
        }
    }); 

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    3
    Vote Rating
    0
    jonny5000 is on a distinguished road

      0  

    Default


    i just found this also! +1

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Thanks, we'll get this fixed for the next release.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #4
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    this is still in beta3
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  5. #5
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    That's what I meant... my comment was after B3 was released
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  6. #6
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    ah sry, missed that
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. [OPEN-676] Bug in Ext.DataView.getRecords
    By Tommes in forum Sencha Touch 1.x: Bugs
    Replies: 3
    Last Post: 15 Jun 2011, 7:00 PM
  2. [FIXED-EXTJSIV-190] TabCloseMenu
    By James Goddard in forum Ext:Bugs
    Replies: 2
    Last Post: 7 Apr 2011, 5:35 AM
  3. typo in Ext.List.getRecords (v 1.1.0)
    By atchijov in forum Sencha Touch 1.x: Bugs
    Replies: 0
    Last Post: 1 Apr 2011, 9:59 AM
  4. Replies: 3
    Last Post: 29 Jul 2010, 10:45 AM
  5. [FIXED-1071][3.3.0] GridView destroy error
    By vladsch in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 29 Jun 2010, 10:01 PM

Thread Participants: 3