Hello, I need to open PDF's in a new tab instead of actually downloading them.I tried to read other questions about this, but it seems that the download is either from traditional or it has changed...In the first image it's my download logic. And has we can see below, the download that I see in other questions is different and has more properties.
Hi Ricardo,
I would suggest you refer this post - Preview PDF File Solution which address the same use case.
Sample App: Preview PDF_Demo
I hope this helps you!
Kind regards,
Benjith Sam
Please find attached an OML with a quick example of a possible solution for your question.
Basically, I created a secondary page, empty, without layout, and with an IFRAME on its root. ON that page, there is a data action that gathers the PDF file binary content, and binds it to the IFRAME src attribute.
Hope this helps.
Best regards,
Paulo Moreira
I have tried this solution... and instead of downloading I redirect it to another screen with the ifram but it appears empty..
the link is doing the same... and it worked with the download :/ so the data must be going correct :/
You have to set the property like:-
Hope it helps you!
Thanks,
Purva
I have tried that too and it doesn't work...
Dont know why... :/
If possible, Can you please share the OML file
It's here. You will get a lot of errors, but its basically the first table the last icons... one is button another is a link, was trying both
This was exacly what I was looking for.. I searched for it in community and somehow didn't saw that reply from you! thanks man! :)
You're welcome, Ricardo. Glad to help you :)
The "PreviewPdfFileOnClick" was working perfectly for me but now for some reason it seems like it is not working properly in Chrome and edge (works as it used to in Safari and Firefox).
Now it shows the document, I can see that the whole document is there, but in a weird way. (I added an image, I just uploaded a blank document)
Does anyone know why?