Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
naamah
Contributor III
Contributor III

Button to open a file

Hi,

in qlik sense (v. May2021)  I created a button which has a URL to open a file in the server like this: 

'file:/serverName/Folder1/Folder2/Folder3/document.docx'

when i click the button it opens the link in chrome (or same in other web browser)  but omit the colon (:).

when i paste it manuely in the address bar it works good (it downloads the file). or when i add the colon back into the url it also works.

does someone has an idea how to resolve it? why qlik omit the colon?

 

2 Solutions

Accepted Solutions
NellyAcko
Contributor III
Contributor III

Hi try %3A instead of chr(58) 

%3A is the default character-set in HTML5 is UTF-8

View solution in original post

9 Replies
brunobertels
Master
Master

naamah
Contributor III
Contributor III
Author

No, already trief it, still omit the colon 😞

NellyAcko
Contributor III
Contributor III

Hi try %3A instead of chr(58) 

%3A is the default character-set in HTML5 is UTF-8

pavod
Contributor II
Contributor II

Hi,

We try the solution with chr(58) or %3A not work in our case, any help ?

Thanks in advance

NellyAcko
Contributor III
Contributor III

Hi try this option, it seems from feedback on other forums non-qlik related that you don't need to include the full path when using a server, only the server name and end folder. 

E.G. file://///servername/folder3

So maybe 'file&3A////serverName/Folder3/document.docx' 

pavod
Contributor II
Contributor II

Hi

If I put this in the expression : 

='file'&chr(58)&'//DxxxSW/...', the : is omit => file//DI8084SW/QlikShare/...

With ='file&chr(58)&//DxxxSW/...' => file&chr(58)&//DxxxSW/...

With ='file&3A////DxxxSW/...' => file&3a////DxxxSW/...

%3A or 3A are not recognized and chr(58) not work or omit

 

NellyAcko
Contributor III
Contributor III

Ah looks like all options here are ruled out. Ill try and do a test myself and and will let you know the outcome ASAP.

NellyAcko
Contributor III
Contributor III

Hi I have just realised you have used &3A and not %3A that was my typo, sorry please try

 'file%3A////serverName/Folder3/document.docx' 

pavod
Contributor II
Contributor II

Don't worry, if I put the same expression, nothing happens when I click on the button

='file%3A////DxxxSW/...'