Hyperlink to SDE feature class attachment

513
5
03-12-2012 03:18 AM
NajyaBatool
New Contributor III
Hello,

Does anyone know how I should/could create a hyperlink to an attachment that is uploaded using the EDIT WIDGET in an SDE feature class attachments table?  I can view the attachment just fine when the EDIT WIDGET is open, but not when it is closed.  I'm thinking it has something do with the security settings on the server.  I get the dreaded 404 - File or directory not found error.  Is there a way to export attachments out of an SDE table to jpegs or PDFs?  I could store them in a location on the server that is accessible via hyperlink, and do a work around. 

Thanks,
Najya
Tags (2)
0 Kudos
5 Replies
LauraMellem
New Contributor II
I am wondering this as well.  Is there a way to batch export the photos out of the attachment file and download to the pc?  Not doing each attachment one-by-one?

Also, can I create a relationship between an attachment file and a new feature class and have it act like the original relationship between the old feature class and the attachment?  i.e. will the new feature class display the attachments in the html pop-up?  A little testing seems like this doesn't work, but maybe I configured the relationship class incorrectly.

Laura
0 Kudos
NajyaBatool
New Contributor III
Hi Laura,

Any luck trying to export the attachments?  I'm also struggling with the relationship classes.  Can't seem to get the configuration right in order to get my feature class to acknowledge the feature attachments table.  How frustrating!

Najya
0 Kudos
LauraMellem
New Contributor II
No luck on my end either.  Esri usually seems swift at posting on these forums, so let's hope we can get an answer soon!
0 Kudos
LukeBehling
Occasional Contributor
I am having the same problem.

esri.............?
0 Kudos
MattEitrem
Occasional Contributor
Try using the rest endpoint of the map service to query a feature that has an attachment using object id as the query and * as all fields. In the HTML results click on the link of the returned object id, scroll to the bottom and click on the Attachment Infos or HTML Popup in the child resources. There you will see a link to the attached document, use the construct of the url to build a link to the attachment "http://<yourserver>/ArcGIS/rest/services/<servicename>/MapServer/0/{OBJECTID}/attachments/{ID}" or "http://<yourserver>/ArcGIS/rest/services/<servicename>/MapServer/0/{OBJECTID}/htmlPopup". The link can be used in the <description> via the <![CDATA[]]/> tag in a popup configuration xml file for flexviewer.

This should work, as I use this method to access related records.

-Matt
0 Kudos