Here is a great challenge for the Sencha warriors. I have this data structure:
Quote has many LineItems and each lineitem has a field that is a part, with other fields at each level.
The program needs to load a list of quotes. This is the first item logged out in the console. This is functioning properly and creating the data structure I need.
Another function is creating a new quote. With this I click a button, and the server gives me back a new quote, and I add it to the store. When I try to do this, the model is not loading correctly. By not correctly, if you look at the second thing logged out, you can see there is no LineItems store created.
Now, I am trying to call store.add({}); then store.sync() in my actual application, but it does the same thing. I couldn't get this working in fiddle.
As a requirement, the new quote has to come from the server, and be added to the sencha store. I can't create it locally then do the sync as I see in all of the examples I can find.
Thanks for your help!
Model association frustration
Aucun commentaire:
Enregistrer un commentaire