onEditToggled: function () {
const oModel = this.getView().getModel();
if(oModel.hasPendingChanges()){
oModel.resetChanges();
}
const oSmartForm = this.byId("SF1");
const bEditable = oSmartForm.getEditable();
const oButton = this.byId("_IDButton1");
oButton.setVisible(bEditable);
}