Skip to Content
0

using smart table in html without annotations

Mar 16, 2017 at 11:30 AM

80

avatar image

Hi all,

I want to create analytical table in the html.

I am able to get the data in the model but unable to bind the data to analytical table.

the data is coming from http response so i cannot use annotations

var aData = xmlHttp.responseXML;

var oModel = new sap.ui.model.xml.XMLModel(); oModel.setData(aData); oTable.setModel(oModel); oTable.bindRows("/Rowset/Row");

Thank you

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Wouter Lemaire
Mar 18, 2017 at 12:16 AM
0

Try to the function "getTable" on the smart table. This will return the table object. On this object you should be able to bind the aggregation for items like this:

oComboBox.bindAggregation("items","/company/contacts",new sap.ui.core.ListItem({text:"{name}"}));

https://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f057786f4d1014b6dd926db0e91070/content.htm

Kind regards,

Wouter

Share
10 |10000 characters needed characters left characters exceeded
anjali thakur Mar 20, 2017 at 07:17 AM
0

Hi Wouter Lemaire,

In analytical table there is no aggregation for items


Share
10 |10000 characters needed characters left characters exceeded