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
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

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

    [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
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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 - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,913
    Vote Rating
    630
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fixed.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2