1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    19
    Vote Rating
    0
    sterin is on a distinguished road

      0  

    Default Local Store Result of expression 'd' [undefined] is not an object.

    Local Store Result of expression 'd' [undefined] is not an object.


    I have a simple MVC project with the classic structure:

    - app.js
    - views:
    -- Viewport.js
    -- MyView1.js
    -- MyView2.js
    - model:
    -- list_item.js
    - global:
    -- global.js

    The index.html order is: sencha-touch.js, app.js, list_item.js, global.js and the views.

    In my list_item.js there is the model:
    PHP Code:
    Ext.regModel('detailLocal', {
        
    fields: [
                   { 
    name'id' },
                   { 
    name'offer'type'string' },
                   { 
    name'version'type'string' }
                ]
    }); 
    in global.js i have my localstore:
    PHP Code:
    var storeLocal = new Ext.data.Store({
        
    model"detailLocal",
        
    autoLoadtrue,
        
    autoSavetrue,
        
    proxy: {
            
    type'localstorage',
            
    id'id',
            
    proxy: {
                
    idProperty'id'
            
    }
        },
        
    listeners: {
            
    load: function(store){
                
    store.sync();
            }
        }

    }); 
    and in my of one view i have this simple code to fill the store:
    PHP Code:
    var record Ext.ModelMgr.create({
        
    offer'ABC',
            
    version'DFG'},
            
    'detailLocal');

    storeLocal.add(record);
    storeLocal.sync(); 
    the storeLocal.add always give me this error:
    Code:
    TypeError: Result of expression 'd' [undefined] is not an object. sencha-touch-debug-w-comments.js:21326
    If i put the same code in a simple project (without viewport and views) all is ok. I tried to move global.js away, put all the code in the view, ... but nothing!

    UPDATE: the problem is in one of my view where i call the store in a dataView. If i delete it all is ok

    Any idea, please?

    Thanks

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    19
    Vote Rating
    0
    sterin is on a distinguished road

      0  

    Default


    ok SOLVED

    The problem is in the view where there is the DataView!!!
    I thinks this is a bug... if i use a ListView all is perfect!

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