Results 1 to 3 of 3

Thread: Reloading store after data on web service changed

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Groningen, The Netherlands
    Posts
    8
    Vote Rating
    0
      0  

    Default Reloading store after data on web service changed

    Hello,

    I am building a shopping list app. The shoppinglist and its items are stored on a web service. After my posted an new shoppinglist item to my web service I want to reload the store witch loads the shopping list. I tried it by using .load() on the same store, but then the nested values of the data that the store returns are empty.

    Does anyone know how I can make this work?

    Thanks in advance.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    The new data is saved to your database or however you save it?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Groningen, The Netherlands
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Indeed. I posted the data to my web service. The web service stored it in a database. Im now actually thinking that updating the complete shoppinglist after I added a new product to it, is not necessary so I will only add one new item to the list.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •