This duplicates another bug already reported in our system: TOUCH-1428
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    118
    Vote Rating
    9
    Bunchofstring will become famous soon enough

      0  

    Default ST2 GA release - storing associated models

    ST2 GA release - storing associated models


    I keep reading that localstorage will be fixed before the general availability (GA) release, but I haven't heard anything from the ST team about automatically storing associated model data. Is this in the plan or what?

    Despite the broken localstorage in PR3, I have it working now (child models only), but it involves an onLoad handler on the main store that iterates through the parent records, saving any child models into another store (if they exist). It's ugly (even by my low standards), and I would appreciate an example of "the right way", or at least a commitment from the ST team to support saving associated models in an upcoming (soon please) GA release.

    In any case, keep up the good work. After a year of tinkering including 2 complete refactors (for MVC, then for ST2) I'm still excited to build a version of Discasaurus (http://www.discasaurus.com/blog/iphone-app-walkthrough) using Sencha Touch.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I have pushed this up so we can look into making this easier.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Indeed that is in the works. I'm not sure if it will make it into PR4, but it is planned for the beta release.

    Sencha Inc

    Jamie Avins

    @jamieavins