I've got a model and a store. The main view submits all changes via store and its REST proxy using:
However, I've got another view (form.Panel) and it does non-REST request using simply form.submit(). In this case server responds with JSON representation of the record (just like for REST requests). I'd like to update the instance of the record in the store with the received data and trigger all store events that would be called if it was received by the store (e.g. some views listen to "write" event to update its record). How to do it?
Using record.set(data) marks it as dirty. Using record.setData(data) doesn't mark record as dirty, but then if I use view.setRecord(record), its updateRecord method is not called.