I am attempting to use field based hyperlinks to display photos in Chrome from ArcGIS Pro popups.
This is probably real simple and most likely related to an error on my part! Any suggestions on resolving this will be appreciated.
Solved! Go to Solution.
Mark,
As I thought, it was a simple solution:
Original hyperlink:
<a href="file://D:ArcGISProProjects/LakeTownsend/Photos/20190505/IMG_0034.JPG" target="_top">Photo</a>
Hyperlink that works:
<a href="file://D:/ArcGISProProjects/LakeTownsend/Photos/20190505/IMG_0034.JPG" target="_top">Photo</a>
It was a "/" alright, but not three of them. I didn't have a "/" between the drive and the first directory. What threw me was that fact that if you paste the file path into Chrome without the "/", the browser is smart enough to figure out what you meant (do what I meant to say, not what I said) and inserts the "/" for you.
I appreciate your help. The fact that you made it work forced me to really look at every character in the hyperlink one-by-one. As I expected, I am officially embarrassed that I even posted this !
It might be a /
I put the following in an Arcade Expression and it worked. Pro 2.3.2
Mark
Mark,
Thanks, but adding an additional "/" did not resolve the issue. I believe there is something that is preventing the hyperlink from firing off a browser window displaying the UNC-referenced image. A regular URL opens up in the browser window without any problem. I am running Pro 2.3.2. As I mentioned previously, I expect that this is going to be something real simple when I figure it out and I'll probably be embarrassed for even posting the question .
Steven,
There is another thing involved... when you click on a 'File" link on windows the application associated with that file type will open. For example when I link to a PNG file, clicking the link in the Popup window opens Snagit which is the program I have associated with a .PNG file.
It did set an attribute as you described, with the extra / and it is working for me.
Mark
Mark,
As I thought, it was a simple solution:
Original hyperlink:
<a href="file://D:ArcGISProProjects/LakeTownsend/Photos/20190505/IMG_0034.JPG" target="_top">Photo</a>
Hyperlink that works:
<a href="file://D:/ArcGISProProjects/LakeTownsend/Photos/20190505/IMG_0034.JPG" target="_top">Photo</a>
It was a "/" alright, but not three of them. I didn't have a "/" between the drive and the first directory. What threw me was that fact that if you paste the file path into Chrome without the "/", the browser is smart enough to figure out what you meant (do what I meant to say, not what I said) and inserts the "/" for you.
I appreciate your help. The fact that you made it work forced me to really look at every character in the hyperlink one-by-one. As I expected, I am officially embarrassed that I even posted this !
That kind of thing happens all the time... for my part I have always seen file: with the three slashes.. so I made an example showing it, and didn't really study your URL any further... Working now though, so Good Stuff!