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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar