on 04-05-2018 4:05 PM
Pass the JSON object as a variable to make sure it is in the right format.
var oEntry = {};
oEntry.perno = "123456789";
oEntry.SID = "BHAT";
oEntry.tdate = "Apr 018";
oEntry.vecnumber = "Ino3x";
sap.ui.getCore().getModel().create('/Mileage', oEntry, null,
function (oResponse){
console.log("Create successful");
console.log(oResponse);
},
function (oError) {
console.log("Create failed");
console.log(oError);
}
);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.