The OData V4 model supports certain events intended for applications, and others that are to be used for controls, as outlined in this section.
The dataRequested event is fired directly after data has been requested from a back end.
The dataReceived event is fired after the back-end data has been processed. Note that the dataReceived event is also fired after a back-end request has failed. The error of the failed request is passed to the event handler as an error parameter.
When the binding is initialized, it fires a change event with the parameter reason set to sap.ui.model.ChangeReason.Change.
When a relative binding gets a new context, it fires a change event with the parameter reason set to sap.ui.model.ChangeReason.Context.
When a binding is refreshed, the event fired depends on the binding type, as follows:
a) ODataPropertyBinding and ODataContextBinding fire a change event with the parameter reason set to sap.ui.model.ChangeReason.Refresh.
b) ODataListBinding fires a refresh event.