msc mobile emerging technologies blog

Olivier Havy

Recent Posts

SAP-UI5 - How to detect form changes

Posted by Olivier Havy on Apr 18, 2016 9:03:59 PM

The purpose of this tutorial is to suggest how to detect any change a user could do in a Web form and more specifically within an SAP UI5 Form that is binded to a JSONModel. Indeed, unlike the oData model (sap.ui.model.odata.ODataModel), the JSON model (sap.ui.model.JSONModel) doesn’t offer a native “hasChanges” method. Yet, as we are about to demonstrate, there exists an easy alternative that consists in creating a Binding Model linked to the JSON model context and then listening to the “change” event of this binding Model.

Read More

Topics: SAP, UI5, JavaScript