Hyperlink attribute table

287
6
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
6 Replies
TigerWoulds
Occasional Contributor II

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
Regular Contributor II

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
RobertBorchert
Frequent Contributor II

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
Regular Contributor II

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