Skip to Content

sap ui5 create operation issue

Nov 11, 2017 at 03:24 AM


avatar image

Dear Experts,

I am trying to create sap ui5 post operation using ajax code but i am getting Forbidden 403 error for my scenario no need token in gateway only we did plase find my controller code

onSave : function(evt) { debugger; var content = sap.ui.getCore().byId("simpleForm").getContent(); var newObject = { "User Name" : content[1].getValue(), "Date of Birth": content[3].getValue(), "Password": content[5].getValue(), } $.ajax({ type: "POST", url: 'proxy/http/XXXXXXXX/devodata/SAP/ZMOB_USER_CREATE_SRV/ZMOBUSERSet', dataType: "json", data: JSON.stringify(newObject), cache : false, crossDomain : true, username : "XXXXXX", password : "XXXXXXXX", contentType: "application/json" , success: function() {"Product Added Successfully"); }, error: function(xhr, status) { new"Error while adding the product"); } }); }

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers