using href tag for a field value in feature description
In the SL viewer the following syntax works and allows the user to click on Open Report and the report opens. Cannot get this same functionality to work in HTML5 viewer. It appears correctly but when I click on Open Report nothing happens.
0
-
Hi Diane,
If you want to run a report from a maptip or feature description, then you would need to create a workflow to do that for you. You would add the workflow to the site, then add a command in the Feature Description (which shows up in the form of a link) to run the workflow and return a report. The link below is a forum thread from our other users and the post by John Nerge goes over exactly what you want to do:
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=90660000000TSlZAAW
He goes over how to create the workflow and step-by-step instructions on how to implement it. So please look over this thread and see if that solves the problem for you.
I hope this helps,
Carmen0 -
Hi Carmen. I don't think I explained my problem well enough. I don't want to run a report...just open a file. In SL viewer, I can use <a href="{LINK}" target="_blank">Open Report</a> in the Feature Description of the layer. LINK is the field in the layer which carries the network path to the file that opens when the user clicks on Open Report. (file:///G:/Reports/test.pdf) This same syntax does not seem to work in the HTML5 viewer. The Popup window still looks the same with Open Report but it does not function as a link any longer. Does this make sense?
Diane0 -
Hi Diane,
Yes, that makes more sense to me now. I did test it out and I was able to replicate your issue; however, I do not think that this can be considered a bug because the HTML5 viewer was not built to handle local URIs in the feature hyperlink. I have tested it in multiple versions of the HTML5 viewer and it did not work for any of them. So I would suggest filing this on the Ideas board in the Support Centre so that people can vote on it.
In the meantime, what I recommand is putting all the files in the Viewer's Virtual Directory so the file path would look something like this:
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\LA_County\Viewers\LA_County_HTML\VirtualDirectory\splash.jpg
Now you can use a link like this to access anything within the Virtual Directory:
http://domain.com/Geocortex/Essentials/Default/REST/sites/LA_County/viewers/LA_County_HTML/virtualdirectory/splash.jpg
So essentially you are still accessing a file that is located on your server; however the viewer's virtual directory has a link associated with it as well of which you can take advantage in the HTML5 viewer.
I hope this helps
Carmen0 -
Perfect - Thanks Carmen!! 0
Please sign in to leave a comment.
Comments
4 comments