Hello,
I have created a geodatabase that stores images as attachments, which are displayed in the pop-ups of a feature.
However, since these images are updated daily, I need a way to automatically refresh the attachments in the geodatabase to reflect the changes. Ideally, this process would involve accessing the image folder daily, updating the attachments in the geodatabase, and ensuring the pop-ups display the latest images.
I have automated the process of generating images and saving them to the folder using Python. However, I am unsure how to automate updating the attachments in ArcGIS Pro and the corresponding pop-ups. It seems like I might need to delete all the existing attachments and reload them each time, from what I have read here
Does anyone have suggestions or ideas on how to automate this routine efficiently?
You may try displaying the Pop-up images from a UNC path, if you are already updating them in a folder.
Insert a hyperlink as an image element
Some other post for reference:
How do I get UNC hyperlinks stored in fields to display in ArcGIS Pro Popups?
Pop-up hyperlink to local network in Portal for ArcGIS (In case you want to view in Web Apps/Browsers)
@Asrujit_SenGupta Thank you for your answer, it was very helpful!
I'm still facing an issue with my project. While I successfully added a hyperlink as a field in the attribute table and configured it to display in the pop-up, the hyperlink doesn’t appear in ArcGIS Online.
I'm wondering if I need to host all my images in the cloud for them to be displayed properly. Is that the case? Or is there a way to keep the images on my desktop, configure everything in ArcGIS Pro, and then update it in ArcGIS Online?
I was hoping to achieve something similar to what is outlined in this tutorial:
https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/
Any suggestions?
You'll have to host them online if you want them to be accessible from AGOL. AGOL can't see items on your computer.
Ok, I have uploaded it in onedrive, to try.
But how do I reference to the onedrive link?
let's say I have an attribute field with all URLs url_onedrive = https://sharepoint.com/test.png
when I set in my pop-up as an Arcade expression:
The pop-up doesn't show the image:
What I'm missing here?