on 2023 Jul 27 3:21 PM
Request clarification before answering.
As described in the documentation "submitBatch" will return undefined:
https://ui5.sap.com/#/api/sap.ui.model.odata.v4.ODataModel%23methods/submitBatch
You can also look at the documentation how to get the result of the created context
https://ui5.sap.com/#/topic/b4f12660538147f8839b05cb03f1d478
onCreate : function () {
var oList = this.byId("peopleList"),
oBinding = oList.getBinding("items"),
oContext = oBinding.create({
"UserName" : "",
"FirstName" : "",
"LastName" : "",
"Age" : "18"
});
this._setUIChanges();
this.getView().getModel("appView").setProperty("/usernameEmpty", true);
oList.getItems().some(function (oItem) {
if (oItem.getBindingContext() === oContext) {
oItem.focus();
oItem.setSelected(true);
return true;
}
});
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.