Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1037 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    0
    jochen.schoellig is on a distinguished road

      0  

    Default Model Save

    Model Save


    Hallo,

    i get always a failure when i try to save something in my model.

    Code:
    onNodeSelect:
        function(list, node) {
    	console.log('onNodeSelect');
    	console.log(node);		
    	node.set('name', 'test');
    	node.save({
                success: function() {
                console.log('erfolgreich');
    	}
        });
    },
    TypeError: 'true' is not a valid argument for 'in' (evaluating ''listeners' in config')

    Please help

  2. #2
    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


    Can you provide how your Model/Store is configured.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    0
    jochen.schoellig is on a distinguished road

      0  

    Post Model, Store and Controller

    Model, Store and Controller


    Here are more Details...

    Model:

    Code:
    Ext.define('Homie.model.Room', {
        extend  : 'Ext.data.Model',
        requires: 'Homie.model.Node',
        
        fields: [
            { name: 'id',     type: 'int'    },
            { name: 'name',     type: 'string' },
            { name: 'type',     type: 'string' },
            { name: 'count', type: 'int'    }
        ],
        
        hasMany: { 
            model: 'Homie.model.Node', 
            name : 'nodes'
           },
        
        proxy: {
            type  : 'rest',
            url   : apiUrl + 'rooms',
            reader: 'json'
        }
    });

    Store:
    Code:
    Ext.define('Homie.store.Rooms', {
        extend  : 'Ext.data.Store',
        requires: 'Homie.model.Room',
        model   : 'Homie.model.Room',
        
          autoLoad: true
    });
    Controller:

    Code:
    ...
    
        onRoomSelect: function(list, room) {
            console.log('onRoomSelect');
            console.log(room);
            
            room.set('name', 'test');
            
            room.save({
                callback: function() {
                    console.log('erfolgreich');
                }
            });
        }
    ...

  4. #4
    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


    Great, thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    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


    This will be fixed as part of the next Touch 2.0 release. Thanks for the report.

Thread Participants: 2

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