I would like to be able to open a file from network location
i know you can navigate to url for a website
is it possible to navigate to file uri
file://network/file.txt
this doesn't work in the navigate to url rule
is there another way?
I would like to be able to open a file from network location
i know you can navigate to url for a website
is it possible to navigate to file uri
file://network/file.txt
this doesn't work in the navigate to url rule
is there another way?
Best answer by ThinusC
Hi braddo
Using a button does make it a bit more tricky, but not impossible.
This will again require some scrips (and I am a JQuery novice, so can most probably be improved on)
The following might give you something to start with and hopefully get to what you want.
Add a button and add a Tooltip i.e. Button1 (Needs to match the script [title='Button1']
Add a Data label, set to literal and add the following text:
<script type="text/javascript">$(document).ready(function() { $("[title='Button1']").click(function() { window.open('file:///ServerShareFile.zip')});});</script>
No K2 rules required to make this work.
The script can be built up using functions & parameters and passed into the Data Label with a Rule though.
What should happen is the script will load on the form and "wait" for the Button to be clicked. When clicked, the specified link will be opened. In this case a file on a network share.
And as RaymondJVR mentioned, it might not work in Chrome.
Cheers,
ThinusC
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.