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

Re: Error binding oData model with Analytical Table

$
0
0

Hi,

I am not using a sap.ui,com.smarttable.SmartTable but sap.ui.table.AnalyticalTable coz the smart table for some reason doesnt work with the metadata of the xs oData service.

Below is the piece of code:

 

//VIEW CODE

var oTable = new sap.ui.table.AnalyticalTable({id:this.createId("TableName")});

var column1 = new sap.ui.table.AnalyticalColumn({label:"Column1",template : new sap.ui.commons.Text({editable: true}).bindProperty("value","ABC"),});//ABC is the column name from the backend

oTable.addColumn(column1);

 

//CONTROLLER

var oModel = new sap.ui.model.odata.ODataModel("http://xxxxx/VIEW.xsodata", true);

  var view = this.getView();

  var oTable = view.byId("TableName");

  oTable.setModel(oModel).bindRows("/CV_UM?$filter=ABC lt 100");

 

Thanks,

Manoj


Viewing all articles
Browse latest Browse all 2800

Trending Articles



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