Skip to Content

using smart table in html without annotations

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 18, 2017 at 12:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 20, 2017 at 07:17 AM

    Hi Wouter Lemaire,

    In analytical table there is no aggregation for items

    Add comment
    10|10000 characters needed characters exceeded