I have a three stores (Ext.data.JsonStore
) inside a subclass of Ext.Window
. I would like to call save()
on all of these, display a wait mask until complete, and then close the window or handle an error.
Is there a way I can do this without ending up with something really messy? I was considering doing this by calling save()
on the second store from within the save
event on the first etc., and then cobbling something together so that I can set a callback to be called when the last store finishes saving, but this seems like I will end up with a big nested mess. So any suggestions on how to build this cleanly would be greatly appreciated.