cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

$value coming as document header in browser while opening file sent via odata in UI5 application

2,167

I am trying to fetch documents from backend SAP through ODATA service and display them in my Fiori application. Everything works fine except that the document title is showing as $value( taken from the URL that it's hitting ) in Chrome browser. Downloading is working fine and I am getting the correct filename there. Any idea how to correct the document title in the browser as well?

Accepted Solutions (0)

Answers (2)

Answers (2)

kateburcham
Explorer
0 Likes

Did you ever find a solution to this? I'm facing the same issue

WouterLemaire
SAP Mentor
SAP Mentor
0 Likes

You can try this blog: https://blogs.sap.com/2018/01/31/sap-fiori-tricks-get-rid-of-value-in-pdf-displaydownloads/

I had to some changes in the example code to make it work.

You could also try this one: https://blogs.sap.com/2016/01/22/how-to-show-file-name-when-calling-getstream/

Kr, Wouter

Thanks but I have already checked these. I am using inline and passing the filename to header. I am getting the filename while downloading. But the document header in the browser still shows $value. Any idea how to fix that?