Skip to Content

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

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 22, 2020 at 08:37 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.