1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    ashenemy is on a distinguished road

      0  

    Default Unanswered: Unable to insert in localstorage

    Unanswered: Unable to insert in localstorage


    I have model:
    Code:
    Ext.define('SizoMag.model.SizoBuscetModel', {  extend: 'Ext.data.Model',
      config: {
        fields: [{name: 'text', type: 'string'}, {name: 'price', type: 'string'}],
        proxy: {
          type: 'localstorage',
          id  : 'buscetmodel'
        }
      }
    });
    and store
    Code:
    Ext.define('SizoMag.store.SizoBuscetStore', {extend: 'Ext.data.Store',
    
    
    config: {
        storeId: 'SizoBuscetStore'
    }
    });
    But when I try to add an entry to the store - get error
    Code:
    var store=Ext.getStore('SizoBuscetStore');                                    store.add({text:'txt',price:'150'});
                                        store.sync();
    [WARN][Ext.data.Operation#setModel] Unless you define your model using metadata, an Operation needs to have a model defined.Console.js:35
    [WARN][Ext.data.reader.Reader#process] In order to read record data, a Reader needs to have a Model defined on it. Console.js:35
    • [COLOR=red !important]Uncaught TypeError: object is not a function [/COLOR]
    Please help me/
    Tnx

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    134
    Answers
    6
    Vote Rating
    5
    JRS is on a distinguished road

      0  

    Default


    In the store config - a model needs to be defined

Thread Participants: 1

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..."