on 03-18-2020 5:41 PM
Hello Every one,
Not able to update database table from webide to SAP Table through odata model, Even though its working fine on Gateway server and I checked connection also,that is also successfull. Sharing the code .
onCreate:function(){
var empid = this.getView().byId("idEmpID").getValue();
var empname = this.getView().byId("idEmpName").getValue();
var empdesig = this.getView().byId("idEmpDesig").getValue();
var emploc = this.getView().byId("idEmpLoc").getValue();
var empmail = this.getView().byId("idEmpMail").getValue();
var emppin = this.getView().byId("idEmpPin").getValue();
var empage = this.getView().byId("idEmpAge").getValue();
var jData = {
Empid : empid,
Empname: empname,
Empdesig: empdesig,
Emploc:emploc,
Empmail:empmail,
Emppin:emppin,
Empage: empage
};
var oData = this.getView().getModel();
oData.create("/empSet",jData,{
success:function(req, res){
MessageBox.show("New Employee has been Created Successfully",MessageBox.Icon.SUCCESS,"SUCCESS");
},
error:function(error){
MessageBox.show(error,MessageBox.Icon.ERROR,"ERROR"); } }); },
Your POST operation call is throwing a 500 error. You need to check the gateway error log/backend error log and analyze the cause of this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.