Threaded View
-
24 Feb 2011 12:47 AM #1
[FIXED]LocalStorage Proxy: rawData is null
[FIXED]LocalStorage Proxy: rawData is null
I'm using the fix:
Code:Ext.data.Model.override({ getProxy: function(){ return this.self.proxy; } });Code:Ext.regModel('User', { fields: [ {name: 'firstName', type: 'string'}, {name: 'lastName', type: 'string'}, {name: 'age', type: 'int'}, {name: 'eyeColor', type: 'string'} ], proxy: { type: 'localstorage', id: 'users' } }); new Ext.data.Store({ model: 'User', storeId: 'UserStore', autoLoad: true }); var grid = new Ext.grid.GridPanel({ title: '', store: 'UserStore', headers: [ { text: 'First Name', dataIndex: 'firstName'}, { text: 'Last Name', dataIndex: 'lastName'} ] }); var win = new Ext.Window({ title: 'Webtool List', width: 400, height: 300, layout: 'fit', items: [grid], buttons: [ { text: 'Add Random', handler: function () { var user = Ext.ModelMgr.create({ firstName: 'Bryan', lastName: 'Zarzuela', age: 29, eyeColor: 'Black' }, 'User'); user.save(); } } ] }); win.show();
When I click save for the first time, no error. However, when you reload the page and the store tries to load the data from localStorage, this comes up:
rawData is null
http://ext4test.teleserv.mac:8080/ext/ext-all-debug.js
Line 28519
The previous call from getRecord has a parameter called id with a value of NaN
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Store.remove using LocalStorage proxy not working for me
By JacobGu in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 30 Dec 2010, 1:41 PM -
NestedList: Can TreeStorage + localstorage proxy be used?
By igaenssley in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 25 Oct 2010, 9:46 AM -
How To sync store / proxy / Model with "submodel" and localstorage
By hq242 in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 30 Jul 2010, 5:58 AM -
[FIXED-30] LocalStorage store seems to be loading twice (0.82)
By rdougan in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 29 Jun 2010, 3:16 PM -
Error this.proxy is null
By alkasoam in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 30 Mar 2010, 6:25 AM


Reply With Quote