Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

sap.m.Select aggregation binding not working

$
0
0

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


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>