NI Home > Community > NI Discussion Forums

LabVIEW Web UI Builder and Data Dashboard

Reply
Member
RGSchmidt
Posts: 84
0 Kudos

Re: How can i make hyperlink to local file for downloading

Has anybody gotten this VI to work? I have tried under latest version of IE and Firefox.

 

It copies the file but I never get the prompt to Save the file ... The Content-Disposition from HTTP forums say this should work.

 

I have code snippet in HTML file I wrote that verifies the browser prompts for file to save.

Member
Chris V
Posts: 185
0 Kudos

Re: How can i make hyperlink to local file for downloading

Hi RGSchmidt,

 

I just tested the VI in Chrome and IE and it seemed to work fine.

 

Is your browser setup to save to a default location?  My Chrome is so the file was simply downloaded to my default downloads directory, without a prompt.  Is this what you are seeing?

 

Have a great day,

 

Chris V

Applications Engineer
National Instruments
Member
RGSchmidt
Posts: 84
0 Kudos

Re: How can i make hyperlink to local file for downloading

Hi Chris,

 

I never see the prompt or the file downloaded in IE or Firefox.

 

Randy

Member
malcolmsmith
Posts: 50
0 Kudos

Re: How can i make hyperlink to local file for downloading

If you load the web service URL directly in your web browser (not in UI Builder with the hyperlink control), do you get the download prompt then?

 

I wonder if it could be a popup blocking issue or something like that.

Member
RGSchmidt
Posts: 84
0 Kudos

Re: How can i make hyperlink to local file for downloading

Great idea ... It worked by directly loading the URL that is passed into the GET function in the vix file called from the Web UI in both Firefox and IE

 

Where could the issue be, I am very confused

Member
malcolmsmith
Posts: 50
0 Kudos

Re: How can i make hyperlink to local file for downloading

I tried it in Firefox in UI Builder and got the download prompt too. I have Block pop-windows on in Firefox but I still had no issues.

 

In your hyperlink control's properties, is TargetName still "_blank"?

Member
RGSchmidt
Posts: 84
0 Kudos

Re: How can i make hyperlink to local file for downloading

Not sure where to find the hyperlink control properties ....

Member
malcolmsmith
Posts: 50
0 Kudos

Re: How can i make hyperlink to local file for downloading

In the Properties window on the right side of your screen, you should find TargetName in the Behavior section.

If you don't see it there, you can hit the sideways Properties button, or bring it back if closed from View ribbon tab > View Panes > Properties.

 

It sounds like you haven't changed TargetName though, so that probably isn't the problem. Can't think of other issues that would cause this though.

Member
RGSchmidt
Posts: 84
0 Kudos

Re: How can i make hyperlink to local file for downloading

Do not see TargetName in the Properties window ... but I changed little if anything for the properties.

Member
malcolmsmith
Posts: 50

Re: How can i make hyperlink to local file for downloading

I'm attaching an editor screenshot for configuring the hyperlink - can you confirm that your control has all of the red boxed properties set up correctly? Another possibility is that you put the URL in the "Content" (link text) rather than the Target URL, then nothing would happen when you clicked it.

 

ConfigureHyperlink.jpg