Subscribe to commit event

3
In my widget I would like to know when the user saves my object in the context when he presses the 'Save' button. That is, the Save button of the screen with my widget on it. Is there an event I can subscribe to and informs me about a commit of the object.
asked
1 answers
3

You can use mx.processor.subscribe to get changes in objectUpdate for an entity.

To subscribe to an object you can use

mx.processor.unSubscribeFromGUID(this, contextGUID);
mx.processor.subscribeToGUID(this, contextGUID);
this.changeHandler = this.subscribeToChange(contextGUID, null, dojo.hitch(this, this.changeReceived));

See checkboxselector for a complete case.

answered