Skip to Content
avatar image
Former Member

Hi Guys, I use the controller to connect to a service, but its giving me error?

I use an ajax call like this:

var oModel = new sap.ui.model.json.JSONModel();
type : "GET",
contentType : "application/json",
url : "",
dataType : "user",
async: false,
success : function(data,textStatus, jqXHR) {
oModel.setData({modelData : data});
sap.m.MessageBox.alert("success to get");


return oModel;

But the URL is giving error saying non relative URL found; can you help?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers