Skip to Content
avatar image
Former Member

SAPUI5 How to bind the xml data to UI table

I'm prototyping SAUUI5 connect with SAP RFC

I just successed to call rfc and get the xml data that was extracted from internal table

below var that name is 'data' has xml data but I can't show the data at web page

What is wrong?
$.get('MyFinanceCardList', {
strFrDate: frDate, strToDate: toDate
}, function(data) {

//Create a model and bind the table rows to this model
var oModel = new sap.ui.model.xml.XMLModel();
oModel.setXML(data);

oTable.setModel(oModel);

oTable.bindRows("/ZSA0FIHFLX0054"); // binding all the rows into the model

});

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 03, 2017 at 01:19 PM

    Assuming that the your model has the correct data, your binding might be the problem.

    You might need to check the code where you create your table. Columns and their templates must be defined and bound to the properties of your model.

    Add comment
    10|10000 characters needed characters exceeded