on 04-17-2015 9:42 AM
Hi,
We have a problem with SAP Fiori Client. We developed an application for SAP Fiori.
We want to export (download) pdf files from SAP system to local in SAP Fiori Client. We use oData service.
Firstly, we add this code (HTTP Name = 'Content-Disposition' and HTTP Value = 'attachment; filename=XXX.PDF') to header in oData class.
Then, we want to download pdf file with this code (sap.m.URLHelper.redirect(urlProvidingFile, true));
If we use Google Chrome web browser, file can be downloaded. But if we use Fiori client application in Android Tablet, the file can not be downloaded and nothing happened.
What could be the problem for SAP Fiori Client?
Otherwise, We can properly download our pdf files with Approve Requests BSP application(CA_ALL_APV) in Android Tablet.
Note : You can see Fiori Client log in attachment.
Hi,
We use this code "parent.window.open(urlProvidingFile, 'blank');" then problem was solved.
SAP's answer for this problem:
It turns out the issue was caused by the fact that custom fiori apps are loaded in iframe elements, while standard fiori apps are loaded into div elements.
This means you will have to make a small change to your javascript to make it work.
All you have to do is change the lines window.open (urlProvidingFile, 'blank'); to parent.window.open(urlProvidingFile, 'blank'); and then the attachmentViewer plugin should handle opening the pdf.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hakan,
Is your issue resolved? If yes then would you please share your solution as we are facing the same problem.
Regards,
Faisal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.