cancel
Showing results for 
Search instead for 
Did you mean: 

Error binding oData model with Analytical Table

Former Member
0 Kudos

Hi,

I am using an sap.ui.table.AnalyticalTable and binding it with a model created out of an XS oData service. The same service used with an sap.ui.table works fine. But when i use an Analytical Table i get the below error:

Uncaught Error in AnalyticalBinding - The QueryResult could not be retrieved. Please check your service definition.

Please help.


Thanks,

Manoj

Accepted Solutions (0)

Answers (2)

Answers (2)

paolo_romano2
Participant
0 Kudos

Hello Manoj,

did you solve ? how?

thanks

Paolo

former_member254395
Active Participant
0 Kudos

Hi

Could u pls share the code here.

Also refer the link SAPUI5 Explored

This may help u and  go through the source code as well

Rabin D

Former Member
0 Kudos

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

karthikarjun
Active Contributor
0 Kudos

Hi Manoj,

You are using model concepts here.

bindProperty("value","{ABC}"),});




Thanks,

Karthik A

Former Member
0 Kudos

Hi Karthik,

thanks for the reply but that doesnt work too.

Manoj

santhu_gowdaz
Active Contributor
0 Kudos

Check out UI5 API.

sap.ui.commons.TextField

is available not sap.ui.commons.Text

SAPUI5 SDK - Demo Kit