Skip to Content

SAPUI5 - EXCEL - Download XLSX From SAP Fiori Client

Hi, experts

I have a requirement which consists of building and downloading an excel document (xlsx) not csv, from SAPUI5 App.

To achieve the goal use the following third party libraries:

When I run the application in SAP Fiori Launchpad in Google Chrome (Desktop), the file is downloaded correctly.

But when I try to download the file from the SAP Fiori Client (Mobile) there is no response and the file is never downloaded.

If you can help me fix it so that it can be downloaded from the SAP Fiori Client, I would appreciate it.

My code is based on the following script:

Thanks for the help!

libraries.png (2.1 kB)
2.png (14.9 kB)
2.png (4.4 kB)
unnamed.png (85.4 kB)
code.png (20.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 11, 2018 at 04:39 AM

    Juan,

    saveAs will not work in Fiori Client.

    Try this:

    parent.window.open(urlProvidingFile, '_blank');  
    // where urlProvidingFile = "data:mimetype;base64,data";
    Add comment
    10|10000 characters needed characters exceeded