Skip to Content
1
Former Member
Mar 14, 2015 at 05:25 PM

How do I open PDF and JPG in new window in sap.m.UploadCollection

568 Views

Hi,

I'm using sap.m.UploadCollection to upload documents. It all works fine. File's being uploaded, and they are shown in the list.

When I click on the link in the list the file is downloaded again. The only issue is this;


When I click on a text file, an image file or a PDF file, it opens in the same browser window. Is there a way to open the link from sap.m.UploadCollection in a new browser window?


For an example I refer to the example in the SAPui5 SDK - Demokit:

https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.UploadCollection/preview

If you click on a text-file or pdf-file you'll see it will open in the same browser window.



with regards,

Michael Visser