Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to insert a link on Qlik Sense sheet to link to a pdf file at local computer.
I tried Text&image object, but it only supports URL.
How could I insert a link on Qlik Sense sheet to link to a pdf file at local computer?
The final Qlik Sense app will be put at Qlik server and Web server.
Any suggestion is appreciated!
Qlik Sense is web based and is device agnostic. Web applications cannot access local file systems - you cannot read or write files to an arbitrary folder (for example: 'My Documents' or 'My Pictures'); Web Browsers limit this is by design.
For example, read the security section here:
JavaScript - Wikipedia, the free encyclopedia.
"scripts run in a sandbox in which they can only perform Web-related actions, not general-purpose programming tasks like creating files"
"JavaScript, also known as ECMAScript, is a scripting language that is used to make websites more interactive. There are specifications in the JavaScript standard that restrict certain features such as accessing local files."
If you have a webserver on the deployment machine, publish the .PDF file to a folder that is shared on the webserver for access via a URL.
For example, let say your machine is called DocServer, and the folder is called Docs. The URL for access then would be something like: http://DocServer/Docs/pdfdocumentname.pdf.
Harvey
If this post is helpful or answers your question, please flag the post as 'Helpful' or 'Answered'
Qlik Sense is web based and is device agnostic. Web applications cannot access local file systems - you cannot read or write files to an arbitrary folder (for example: 'My Documents' or 'My Pictures'); Web Browsers limit this is by design.
For example, read the security section here:
JavaScript - Wikipedia, the free encyclopedia.
"scripts run in a sandbox in which they can only perform Web-related actions, not general-purpose programming tasks like creating files"
"JavaScript, also known as ECMAScript, is a scripting language that is used to make websites more interactive. There are specifications in the JavaScript standard that restrict certain features such as accessing local files."
If you have a webserver on the deployment machine, publish the .PDF file to a folder that is shared on the webserver for access via a URL.
For example, let say your machine is called DocServer, and the folder is called Docs. The URL for access then would be something like: http://DocServer/Docs/pdfdocumentname.pdf.
Harvey
If this post is helpful or answers your question, please flag the post as 'Helpful' or 'Answered'
Finally, we get a walk around in Qlik mashup.
Hello,
Can you please be more accurate on the work around you're talking about here? This is definitely something I want to achieve and I can't figure out how.
Is Harvey's answer the solution you put in place on your side?
Thanks a lot in advance.
OM
Please try:
<a href="myfile.pdf">Download myPDFfile</a>
Can you explain this a little better? It's not clear how you utilize the html tag within Qlik Sense.
Thanks!
Well this reply is certainly garbage, how about a solution ?
Update: Modern Web Browsers are locked down. IE11 will work, but the issue is around malicious code being executed.
That said, someone built a Chrome extension that works around the issue of opening local files but has built in the logic to only allow for links to be executed vs. code.
Here's the Chrome extension I found: