Skip to content

Commit

Permalink
Dirty workaround for #21
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf committed Dec 9, 2016
1 parent c70e831 commit 775a6ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/controller/CreateEntity.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ sap.ui.define([
var that = this,
oModel = this.getModel();
//Get the Path
var sPath = oEvent.getSource().getBindingContext().getPath();
var sPath = "/Participant";
// Causes Bug Registration not possible with newest SAPUI5 #21
// var sPath = oEvent.getSource().getBindingContext().getPath();
// TODO added by Gregor, 2016-08-02: There should be a better way than reading all values and adding to the model
oModel.setProperty(sPath + "/FirstName" ,this.getView().byId("idFirstName").getValue());
oModel.setProperty(sPath + "/LastName" ,this.getView().byId("idLastName").getValue());
Expand Down Expand Up @@ -359,4 +361,4 @@ sap.ui.define([
}

});
});
});

0 comments on commit 775a6ce

Please sign in to comment.