Skip to Content
0

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

Mar 09, 2017 at 08:36 AM

37

avatar image

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.

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

1 Answer

Veeraraghavan Narasimhan
Mar 09, 2017 at 03:10 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded