jeudi 22 mai 2014

Extjs 4.2.1: SYNC callback or similar... best practice

Hi,

I call store.sync() in the controller.


I want to store.load() every time there's an update/create at the backend, specifically to get the backend-generated ID of the created record as well as to fetch the actual data saved in the database on field updates.


What's the best way to do this?

(Making sure that the back-end save/update was executed before calling the store.load()).

Expected sequence should be: store.sync >>> update/create in backend >>> callback >>> store.load


Thanks in advance.





Aucun commentaire:

Enregistrer un commentaire