Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

How to display file attachments read from SAP Archive link in SAP UI5 application?

$
0
0

Dear Experts,

 

I have a requirement to read files from SAP Archive link and display the list of files in a UI5 application. Then, upon clicking on the file name, I should be able to display the file content within the application or download those files to the local desktop or mobile device of the user. The files could be of any format like text files, docx, pdf, jpeg etc.

 

I am trying something very similar to the below sample application created using sap.m.UploadCollection. Nevertheless, I don't have the requirement to upload file but rather display already stored files in an external repository through SAP Archive Link:

 

SAPUI5 Explored

 

The Archive link gives the file content in Raw format and also provides the mime type. I have created my oData service to expose the files and its content in raw format(if required can be converted to xString).

 

Could you please advise if sap.m.UploadCollection can be used for my purpose? If so, it would be of great help if you could provide some code snippets for the same.

 

If this control cannot be used, what could be an alternative?

 

Thank you!

 

Best regards,

Krishnan


Viewing all articles
Browse latest Browse all 3458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>