Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1668 in a recent build.
  1. #1
    Sencha User aflx's Avatar
    Join Date
    Jun 2011
    Location
    Berlin, Germany
    Posts
    64
    Vote Rating
    0
    aflx is on a distinguished road

      0  

    Default idgen not working in PR4

    idgen not working in PR4


    The automatic generation of an index doesn't work anymore with PR4:

    Code:
    Ext.define('MyApp.data.MyModelA', {
        extend: 'Ext.data.Model',
        idgen: {
            type: 'sequential',
            id: 'foo'
        }
    });
    or

    Code:
    Ext.define('MyApp.data.MyModelA', {
        extend: 'Ext.data.Model',
        idgen: 'sequential'
    });
    The id is always 0.

    I don't know, if it is related to this bug: http://www.sencha.com/forum/showthre...ignoring-index

    Alex

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Posts
    7
    Vote Rating
    1
    siltronic is on a distinguished road

      0  

    Default


    Yes, seems to doesn't work.

    Even if idgen is specified inside the config object when defining a model (and specified the clientIdProperty) like that :


    Code:
    Ext.define('MyApp.model.MyModel', {
        extend : 'Ext.data.Model',
        config : {
            idgen : {
                type : 'sequential',
                seed : 100
            },
            clientIdProperty : "id",
            fields : [{
                name : "id",
                type : "int"
            }, {
                name : "name",
                type : "string"
            }]
        }
    });
    
    var rec = Ext.create('MyApp.model.MyModel', {
        name : 'test'
    });
    
      alert(rec.getId());// always 0

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    In PR4 we haven't implemented the other id generation methods besides the standard one. Expect this to be fixed for the next release.

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Ok, the sequential and uuid generators have been reimplemented and will be part of the next release. Thanks for the report.

  5. #5
    Sencha User aflx's Avatar
    Join Date
    Jun 2011
    Location
    Berlin, Germany
    Posts
    64
    Vote Rating
    0
    aflx is on a distinguished road

      0  

    Default


    Great! I hope PR5 is comming very soon

  6. #6
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Beta 1 won't be long...

    Sencha Inc

    Jamie Avins

    @jamieavins

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi