Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: Can't bind odata service to my view

$
0
0

Hi Marcos,

 

May be you have to set the model after the request is completed, can you try something like this?

var midata = "serviceURL";     //provide the service URL
var oModel = new sap.ui.model.odata.ODataModel(midata);
var that = this;
oModel.attachRequestCompleted(function(oEvent){     that.getView().setModel(oEvent.getSource());
})

Also check the model structure in console and bind the path accordingly to Panel.


Regards,

Sai.


Viewing all articles
Browse latest Browse all 2801

Trending Articles