Is there an example on how to compare two models for differences?
I am creating a cancel button and wanted to detect if the oModel (JSON) has changed and accordingly prompt the user to either save or discard changes.
I have read in the documentation that there is an updateRequired() method for the model.Binding.
new sap.ui.model.Binding(the, sPath, oContext, mParameters?)
updateRequired(oModel) : boolean
Determines if the binding should be updated by comparing the current model against a specified model.
I am trying to use this method but it is not working... any help on alternative ways? The documentation is not so elaborate.
Thanks in advance,