Conditional Feature Hyperlink
We have a layer that has a field with a file name (only) we wish to link to the files on an existing web doc repository. But some fields are blank because not all features have an associated file.
I know I could use the method of adding a common use "doesn't have an associated record" & update all those null record/field entries, but that's not the most user friendly approach. (Having a user follow a link to show nothing exists.)
Has anyone found a trick to implement a conditional feature hyperlink???
Thanks!!!
-
I think this should do what you want:
<a href="filePath\{filename}">{filename}</a>
Where {filename} is the field that has your file names. That way if there is a file name in that field, it will show a hyperlink. If there is no filename, it will be a blank space.
0 -
oh I just realised you are talking about feature hyperlinks. What I wrote above is what I put in my feature description. Never mind!
0 -
I use a couple different methods for this. The first is similar to Stephanie's method where I use the field name as the hyperlink display. The icons still show up, but there's nothing clickable since the value is null (now that I think of it, I suppose I could use a white icon so it's essentially invisible). This works well when I have a dataset where some records have more document links than others.
/customer/servlet/servlet.FileDownload?file=00P6000000elzi4EAA
The other option I use it to create a document called Unknown and recalculate all of my null values to that. The document just has a sentence in it that says "The document is not available" and tells people to contact our County office for more info. This one works well when the dataset will only have a single link (e.g. a plat or easement polygon linking to the original drawing).
0 -
Hello,
I need to create hyperlinks to the PDF stored on our file server. PDF file name is stored in a FieldName.
Here is how I am attempting to configure it ( under Add Feature Hyperlink):
HyperlinkText = {FieldName}
URI: <a href="\\servername\PDFFolderPath\{fieldName}">{FieldName}</a>
Encode: Automatic
Tool:tip : blank
Icon URI : blank
Target: new()
As soon as I click OK I get an error - see below:
/customer/servlet/servlet.FileDownload?file=00P6000000eltmWEAQ
Not sure what's causing this.... my settings? Are there any other ways to hyperlink from layer to documents? Any help is greatly appreciated?
Thanks in advance!
0 -
Liviu,
To set the URI to a file on a server, you need to preface the locations with file:/// like so:
file://///servername/PDFFolderPath/{fieldName}
You don't need the <a href> part because GE Manager already understands that the URI setting is for the file location and the HyperlinkText setting is for what to display.
0 -
John,
Thanks for your reply! That was exactly what I was looking for!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare