Jump to content

Open files (documents) through IWP


This topic is 4750 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I need people to be able to open procedures that are located on network drive through IWP with OpenURL

Example URL: file://d:\procedures\01.pdf

Now in IWP a http:// prefix is automatically added when the user clicks, so they simply cannot open the file.

I searched the forum and found that some user had a solution (http://fmforums.com/forum/topic/32433-open-url-in-iwp/) but the topic old and the attachment is lost.

Is there anyone that knows how to solve this problem?

Thanks in advance.

Link to comment
Share on other sites

  • 4 weeks later...

For anyone who's interested, here is my workaround for the above problem.

On changing the field that contains the document (the doc that users need to open through IWP) a scripttrigger exports the content of a 2nd field. This 2nd field contains an HTML meta-refresh code. This html code tells the browser to reload using address x, which is in this case, the address of the the document (file://10.51.x.x/docs/01.doc)

This record is written to a file called e.g. 01.html and is saved on a webserver (so a fileserver that can be reached with an HTML prefix http://)

A third field contains the adress of the HTML file, so something like http://10.51.x.x/html/01.html

This field is used for the "open url" action, this will be the field that the user clicks on.

So now the user can click and directly open the document.

Note that the meta-refresh tags that direct your browser to a local file, does not work wit Firefox, since this finctionality is disabled. It works fine in IE.

Link to comment
Share on other sites

This topic is 4750 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.