Select to view content in your preferred language

Displaying Attachements

1202
7
06-18-2014 05:59 AM
Hernando_CountyProperty_Apprai
Regular Contributor
I would like to use attachments in ArcServer but only to view them...not to edit.  For example, we have users that edit their data in ArcMap and they have documents that they would attach to their feature.  I would like to be able to show these attachments in my ArcServer javascript application but I don't want anyone to be able to change them there...just view them.  Does anyone have an idea of how this would be approached?
0 Kudos
7 Replies
StevenGraf1
Frequent Contributor
You can use the pop up widget to display attachments without editing them.  Here is the link.

I haven't figured out a way to have the attachments show while using the toggle layers on/off widget though.

Hope this helps!
0 Kudos
MichaelVolz
Esteemed Contributor
Steven:

The link that you indicated does not appear to have any attachments as every pop-up element I click on says "No attachments found".  Do you know where on the map I would find a working attachment?
0 Kudos
StevenGraf1
Frequent Contributor
If they had attachments loaded into their data you would see a link to the attachment.  The same principle is there just without the data.  To apply this to your needs, you would have to load the attachments into your data first or use the Attachment Editor to load attachments via another application.
0 Kudos
MichaelVolz
Esteemed Contributor
Did you modify this sample to use your own data and successfully show attachments?  If so, do you have a public version that I could run and see the results?
0 Kudos
StevenGraf1
Frequent Contributor
I don't have a public application for viewing.   What I did was basically take the code mentioned above and have 2 applications.  1 that uses the attachment editor so I can load attachments and 1 that uses the pop up widget to view attachments.  It works great.
0 Kudos
MichaelVolz
Esteemed Contributor
In order to use Attachments, an SDE datasource is required, correct?
0 Kudos
StevenGraf1
Frequent Contributor
Yes, and also you have to have attachments enabled
0 Kudos