I was just checking out the "Mastering ExtJS" video on Modmore's website.
https://video.modmore.com/modx-weekend-2014/sunday-backend/mastering-extjs/
I was poking through the demo code from the video on Github to see if there are better ways of doing things and I came across one here:
https://github.com/TheBoxer/bxr/blob/mw2014/assets/components/bxr/js/mgr/widgets/items.window.js
On line 6 you can see that the processor call is determined by a configuration property called "config.isUpdate".
,action: (config.isUpdate)? 'mgr/item/update' : 'mgr/item/create'
This is great because it means I wouldn't have to keep defining separate update and create windows. The only thing is, I can't see anywhere in the code where the "config.isUpdate" property is being set!
Anyone able to shed some light on where I should be looking?
Cheers!