-
11 Dec 2011 3:22 PM #1
[PR3] Model saved to localStorage cannot be used to load() a form
[PR3] Model saved to localStorage cannot be used to load() a form
In Sencha Touch 1.1.1, this was able to load a form backed by a model backed by a localstorage proxy:
In Sencha Touch 2 PR3, this loads the form with the values of the settings pre-save: that is, it does nothing.Code:var settings = Settings.first(); settings.set({a:1}); settings.save(); Ext.getCmp('settings-form').load(settings);
This is the only workaround I have for now:
Code:var settings = Settings.first(); settings.set({a:1}); settings.save(); var temp = Ext.create('Settings',{a:1}); Ext.getCmp('settings-form').load(temp); temp.destroy();
-
12 Dec 2011 12:05 AM #2
localStorage in Sencha Touch 2 is broken, in all PR releases, and will hopefully be fixed by the next release. There is already a ticket open for this.
Thanks!Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote