extjs - load Data from local store -
i'm facing diffculties loading specific data records frome local store app's views.
the store looks this:
ext.define('xyz.store.userdatastore', { extend: 'ext.data.store', requires: [ 'xyz.model.user' ], config: { autoload: true, autosync: true, model: 'xyz.model.user', storeid: 'mystore', proxy: { type: 'localstorage', id: 'id' } } });
the model looks this:
ext.define('xyz.model.user', { extend: 'ext.data.model', config: { fields: [ { name: 'token', type: 'string' }, { name: 'title' }, { name: 'login' }, { name: 'facebookid' }, { name: 'firstname', type: 'string' }, { name: 'lastname', type: 'string' }, { name: 'nationality', type: 'string' }, { name: 'birthday', type: 'string' }, { name: 'phone' }, { name: 'mobile' }, { name: 'street' }, { name: 'city', type: 'string' }, { name: 'zipcode', type: 'int' }, { name: 'willingtotravel' }, { name: 'pictureurl' }, { name: 'email' }, { name: 'publiclist' } ] } });
thank in advance, sabine
Comments
Post a Comment