Hi guys, pretty new here, and trialling Sencha Architect at the moment. Having lots of fun but would appreciate some pointing in the right direction.
You're probably all familiar with the Cars example that's provided by Sencha. When opening the resulting app, the cars.json data file is read automatically from disk. I got the app to allow me to edit the various rows of data, and now I would like to update the original cars.json data file (or write a copy) on disk.
How would I go about that?
I've read the forums, looked at examples, but all I can find is JsonWriters that talk to some webservice. I was thinking that whatever the JsonReader does at the start of the app (or on a load), can the JsonWriter do something similar?
Thanks for your reply.
You confirm that the jsonwriter will update the 'store' when being synced. But the 'store' is not the same as the json file on disk - is that correct?
As far as I can see the store in memory gets updated, but the car.json on disk never changes.
Is it correct to assume that to actually update the car.json on disk, there does need to be a webservice on the web server to take care of writing the store to disk?
Or have I just not configured the jsonwriter / store correctly?
I've been searching all over on how to update a Json file tied to a store, but it sounds like it must be done outside of Sencha Architect. For those of us that are new to this, do you have any links or examples on how this would be done in the web server? For example, how is the store data sent to the web server.
i came up with exactly the same problem here. Sencha is a great framework, for sure but i really can't understand the poor documentation when you going a little bit into deep. For example writing a store with proxy json and ajax. It should be easy than the other way(reading) but it is not. Two possibilities, i am to stupid or it is not that easy than poor docs make believe. When i find a solution, i will post it here.