Hi All,
I am trying to bind the OData model wih sap.m.Select in XML View . I am usnig the sample Odata service and initializing the model onInit :
onInit: function() {
var url = "proxy/http/services.odata.org/V4/OData/(S(mayank))/OData.svc/";
var oDataModel = new sap.ui.model.odata.ODataModel(url,true);
this.getView().setModel(oDataModel);
},
And binding the select in the following way :
<m:Select items="{
path: '/Categories'
}">
<core:Item key="{ID}" text="{Name}" />
</m:Select>
The metadata call is happening but the ?categories call is not and hence the Select control is empty.
Kindly help.
Regards
Mayank