Error: Unsupported event ‘propertyChange’: v4.ODataModel#attachEvent

Hi all,

Trying to attach a function to the method attachPropertyChange on the sap.ui.model.odata.v4.ODataModel

onAfterRendering: function () {
var oModel = this.getView().getModel(); //based on sap.ui.model.odata.v4.ODataModel
oModel.attachPropertyChange(() => console.log(“hello”));
}

in the console it appears:

friendlycoder_0-1710252893734.png

Has the event `PropertyChange` been deprecated on `sap.ui.model.odata.v4.ODataModel`?

Best regards

 

Scroll to Top