In my current job, i had a requirement in SAPUI5
to download Table/list/etc
control's data into .xlsx
excel file extension (not .csv
extension).
Please guide me with some good examples or concept.
Thanking you in advance.
In my current job, i had a requirement in SAPUI5
to download Table/list/etc
control's data into .xlsx
excel file extension (not .csv
extension).
Please guide me with some good examples or concept.
Thanking you in advance.
I have found one solution to download .xlsx file in sapui5. Please feel free to provide feedback on my work.
First get the data from table/list controls and use below code to generate .xlsx file in sapui5.
some_etc_controller.js
Download and put below specified javascript library file into your sapui5 lib folder.
Blob.js: https://github.com/eligrey/Blob.js/blob/master/Blob.js
xlsx.js:https://github.com/SheetJS/js-xlsx/blob/master/xlsx.js