on 2019 Aug 23 2:29 PM
Hi,
I am trying to export sap.m.table data to the .xlsx file format. So, I am using sap.ui.export.Spreadsheet. But in the console, I see the error message: Uncaught Error: "Failed to load 'sap/ui/export/Spreadsheet.js' from - 404 not found". It is available since version 1.50. I have checked my sapui5 version(sap.ui.version) also and it is 1.60.2. So it will be supported.

Could you please let me know how to resolve the issue.
Request clarification before answering.
Hi, to include sap.ui.export in your project, you need to update your ui5.yaml file. Add the library as shown below:
framework:
name: SAPUI5
version: "1.108.0"
libraries:
- name: sap.m
- name: sap.f
- name: sap.uxap
- name: sap.ui.core
- name: sap.ui.table
- name: themelib_sap_fiori_3
- name: themelib_sap_horizon
- name: sap.ui.export
After making this change, restart your project by running:
npm start
This is necessary because any changes made to ui5.yaml require the project to be restarted to take effect.
you can add the library directly in ui5.yaml or using the terminal:
ui5 add sap.ui.export
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For everyone who face this problem running some QUnit testing, please ensure to modify the src path in opaTest.qunit.html and unitTests.qunit.html:
<script id="sap-ui-bootstrap" src="xxxxx"
In src you must put the standar sapui5 url: "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
Regards,
Daniel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure how you got this error. For me, when I try to preview the application in the launchpad mode. I solved it by changing the src. You need to change the src in the /test/flpSandbox.html, not the index.html. Change the src from ../resources/sap-ui-core.js to https://sapui5.hana.ondemand.com/resources/sap-ui-core.js
Hope you have solved it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.