Select to view content in your preferred language

How to open a Hyperlink field in ArcGIS Portal or AGOL

534
4
02-26-2024 05:40 AM
JoseSanchez
Frequent Contributor

Good morning,

Is there a way to open an Hyperlink field? May be  using  Experience Builder?

All documents related to a project are stored in the corresponding folder:  server/storage folder/project number.

For example, all documents related to project 100 will be stored in  folder: \\server\project\100  then in the FC for project 100 there is a field called DocPath with the value:  file:///\\<server>\<project>\<project number>

This is a hyperlink field, so it can be clicked in ArcGIS Pro and it opens the specific folder. In a WebMap it does not work.

How can I do the same thing in Agis Portal/ AGOL?

Thanks

 

 

 

 

 

0 Kudos
4 Replies
JakeSkinner
Esri Esteemed Contributor

@JoseSanchez ,

Unfortunately, ArcGIS Online does not support UNC paths as hyperlinks.  See the alternative solutions in the below link:

https://support.esri.com/en-us/knowledge-base/faq-does-arcgis-online-support-unc-paths-as-hyperlinks...

 

BlakeTerhune
MVP Regular Contributor

It's a browser thing. It seems modern browsers prevent this intentionally for security. You could try some browser extensions to allow it (at your own risk).

0 Kudos
JoseSanchez
Frequent Contributor

Hi @JakeSkinner    @BlakeTerhune 

Is there a way to call  a geoprocessing Python tool from the Popup Window that will open File Explorer.  Folder passed as  parameter.

import os
path = "\\\\server\\folder\\project"
path = os.path.realpath(path)
os.startfile(path)

 

0 Kudos
BlakeTerhune
MVP Regular Contributor

Yes, if you are able to host the Python script as a geoprocessing service.

0 Kudos