Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      0  

    Default [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:

    Code:
    var settings = Settings.first();
    settings.set({a:1});
    settings.save();
    Ext.getCmp('settings-form').load(settings);
    In Sencha Touch 2 PR3, this loads the form with the values of the settings pre-save: that is, it does nothing.

    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();

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread

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