Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

Using Odata filedownload in UploadCollection

$
0
0

Hello,

 

How can I use my Odata  filedownload in the fiori UploadCollection?

 

I already implemented the GET_STREAM Method etc. the download works without a problem if i debug my Odata service.

 

 

<UploadCollection id="__collection0" items="{to_Documents}" maximumFileSize="0" maximumFilenameLength="0" mimeType="undefined">

<items>

<UploadCollectionItem contributor="{CreatedBy}" documentId="{id}" enableDelete="false" enableEdit="false" fileName="{FileName}"

mimeType="{mime_type}"

uploadedDate="{ path: 'CreatedOn', type: 'sap.ui.model.type.Date', formatOptions: { style: 'medium' }}"

url="{__metadata/media_src}" visibleDelete="false" visibleEdit="false">

</UploadCollectionItem>

</items>

</UploadCollection>

 

 

url="{__metadata/media_src}" does not work, if i click a file, the url comes out like this:

https://<SYSTEM_NAME>/sap/opu/odata/sap/<SERVICE_NAME>/<ENTITY_SET>(LogicalDocumentID=guid'8CDCD4A8-4FFC-1EE5-B3CB-A39B464CC417',ReferencedObjectUUID=guid'8CDCD4A8-4FFC-1EE5-AFEB-0702A37A93DB')/$value

 

 

If I debug only my Odata Service, the url looks different at the <SYSTEM_NAME> part. It seems that I have to do some kind of replacing the system name with host and port. How do I do that correctly?

 

Best Regards,

Marcel


Viewing all articles
Browse latest Browse all 1879

Latest Images

Trending Articles



Latest Images

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