Skip to Content
avatar image
Former Member

How to populate sapui5 smart table with data from a CSV file mport?

Hi experts.

I am new to SAPUI5 and so am struggling to use sap.ui.comp.smarttable.SmartTable of sapUI5. I saw various examples but all of them make use of oData service which I don't need to use in my case.

Basically what I need to do is, import CSV file and show its data in smartTable. I am successful in showing the data in a simple table in SAP but unable to figure out how to use smarttable without any oData service in SAPUI5.

I am using XML view for view part.

Please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 09, 2017 at 03:10 PM

    Hello Sumit,

    Smart Table cannot work with any other model other than oData . If you look at fundamental premise of Smart Table is it is closely linked to an entity in your ODataModel . A table which can understand a metadata of your service is Smart Table. When you are reading from CSV there is literally no metadata at all.

    Thanks and Regards,

    Veera

    Add comment
    10|10000 characters needed characters exceeded