Skip to Content

SAP Fiori Client open PDF - window.open - cache problem

Hi all,

we have a problem with openening PDF documents from an App in the Fiori Client.

The following code worked fine in Fiori Client 1.13.XX, but since 1.15.XX there are the problems.

1. We download a PDF-File from the backend to the Android-Tablet. - works fine

2. The PDF is saved under Android/data/...fior.client../files - works fine

3. In a new step we want to open this file from the same App.

--> In 1.13.XX the code works fine:

window.open(sEncodedPath, "_system", "location=no,enableViewportScale=yes");

----> The User opens the PDF in Acrobat Reader, put comments in there, closed it (saved) and the changed document was saved.

--> In 1.15.XX there is now the problem, that the Parameter "_system" does not work anymore. So we changed this to "_blank" ("_self" would also work like this) - but now there appears a problem:

window.open(sEncodedPath, "_blank", "location=no,enableViewportScale=yes");

---> Since this change, the PDF from the Android-path gets opened fine BUT it is opening a temporary or cached file (this could also be seen in the document description, where now a temporary name is open e.g. 1201064848.pdf). So if the User opens and changes the document, nothing will happen because the wrong document (cached/ temporary) will be changed.

The same situation comes with the cordova.InAppBrowser: cordova.InAppBrowser.open(sEncodedPath, "_blank", "location=no,enableViewportScale=yes"); --> so this does not help also.

Does anybody know why the new version does not support the parameter "_system" anymore, or does anybody have an idea to resolve this problem.

Thank you very much for your help.

Regards

Björn

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 27 at 05:14 PM

    Hi Dear,

    Am also having same problem with SAP Mobile Fiori Client App.

    could you please post the file name and path of the folder.

    Regards

    Ganesh

    Add comment
    10|10000 characters needed characters exceeded