on 09-01-2022 3:25 PM
Hi Experts,
I have created a folder and uploaded an excel template to my webapp. When I click the downloaded template button excel is downloading. it is working fine locally in my BAS. When I am trying to deploy the application excel file is not uploaded to the ABAP repository find the screenshot below.
Webapp
My code
onPressDownloadTemplate: function (Event) { var oBundle = this.getView().getModel("i18n").getResourceBundle(); var sPath = sap.ui.require.toUrl("com/sap/alid/Promotion/excel/Create_Promotion_En.xlsx"); const oA = document.createElement("a"); oA.href = sPath; oA.style.display = "none"; oA.download = (oBundle.getText("lblPromotioncreation") + ".xlsx").replace(/\s/g, ''); document.body.appendChild(oA); oA.click(); document.body.removeChild(oA); },
While deploying application
Please help me. Thanks in advance.
Thanks & Regards
Srinivas Raju
Please refer to this answer;
https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:50742:46000:53797
The unknown file types have to be maintained in .Ui5RepositoryTextFiles or .Ui5RepositoryBinaryFiles files, according to https://ui5.sap.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.