Results 1 to 3 of 3

Thread: [FIXED][3.x] Record auto id

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      0  

    Default [FIXED][3.x] Record auto id

    Seems a static id is being assigned to records, overwriting all previous records, so only one record will show up in grids at the moment. Check any example, say array grid.

    Code:
    Ext.data.Record.id = function(rec) {
    	rec.phantom = true;
    	return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID].join('');
    }

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    127
      0  

    Default

    OK, you've found it problem yourself.

    IMHO this should have been:
    Code:
    Ext.data.Record.id = function(rec) {
    	rec.phantom = true;
    	return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID++].join('');
    }

  3. #3
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,964
    Vote Rating
    930
      0  

    Default

    Fixed.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

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