Hyperlink attribute table

2300
8
03-02-2021 09:00 AM
Labels (2)
AndrewEastop
New Contributor III

Hello everyone

I was wondering is there a way that I can get my data in the attribute table to be hyperlinked? Each row has a link to a different picture and i thought it would be great to have a hyperlink to bring up the image.

thanks 

AndrewEastop_0-1614704266687.png

 

Tags (2)
0 Kudos
8 Replies
tigerwoulds
Occasional Contributor III

Check out this doc: Use hyperlinks in pop-ups—ArcGIS Pro | Documentation
It highlights what you need to do. 

Another option is geodatabase attachments, if you want to image to appear in the popup directly. 

An overview of the Attachments toolset—ArcGIS Pro | Documentation

jcarlson
MVP Esteemed Contributor

And don't forget that you can use the "Image" type in the popup configuration to display the file as well.

jcarlson_0-1614705456321.png

Great for local access to images and files that for whatever reason, can't be included in the GDB itself (though attachments are really nice).

One caveat: this only works for desktop GIS. "file:///" links do not translate to web maps.

- Josh Carlson
Kendall County GIS
Laura
by MVP Regular Contributor
MVP Regular Contributor

What is the solution for web maps? Converting everything to attachments?

0 Kudos
tigerwoulds
Occasional Contributor III

I think you can still use hyperlinks for webmaps. You need to put your photos/docs on a web server and add the path in your attribute table. I would recommend attachments for web maps though. In general attachments are a cleaner solution, no overhead managing files on a web server, and more performant from my experience. Attachments can be viewed directly from web map popups too, I think hyperlinks always open in a new tab. I could be wrong though, it's been a few years.

0 Kudos
RobertBorchert
Frequent Contributor III

Use a UNC path instead of a local network path

 

AndrewEastop
New Contributor III

Thank you very much for the replies everyone it is very much appreciated.

I have got the hyperlink to work in ArcMap without changing anything as you can see below. My problem now is just Pro! Why would it work in one and not the other? Is it just not designed to work in Pro?

I have thousands of data to go through so would rather not have to go through each point and manually put the hyperlink in. Is there a button I can just press which will make my content in these rows hyperlinked?

AndrewEastop_0-1614790116311.png

 

0 Kudos
jcarlson
MVP Esteemed Contributor

You can use Arcade and create a popup expression. Check out Replace.

var filepath = $feature.url_field //Example: 'C:/Documents/some_file.jpg'

return Replace(filepath, 'C:', 'file://')

Returns

'file:///Documents/some_file.jpg'

 And that could just as easily be written to be a UNC path as well.

That will return the link for use in your popup, without requiring you to change the data at all.

However, if you want to permanently update that field, you could also use the same Arcade statement in a field calculation to update the actual attributes.

- Josh Carlson
Kendall County GIS
AndrewEastop
New Contributor III

thank you Josh, will check it out!

0 Kudos