Syntax error Converting OData using SAPUI5 libraries to JSON format

Converting OData using SAPUI5 libraries to JSON format



This can be done in multiple ways. One of common approach would be by passing user name/password in URL.

$.ajax({
   url : "http://user:password@url/SERVICE?$format=json",
   type: "GET", //or POST?
   dataType: "jsonp",
   success: function(){alert("ok")},
   error: function(){alert("error")}
})
Updated on: 2020-02-14T10:18:07+05:30

552 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements