Select to view content in your preferred language

Feature Attachment, can multiple features share the same attachment file?

2434
1
10-20-2011 08:22 AM
YongzhiYu
New Contributor
Hi All:

  I am in AGS 10, and I am implementing a project that need to attach some pdf files to multiple parcel features. Here is my quesion:
  Can multiple features share the same attachment file? In other word, can I attach one file to multiple features at one time?

An example is if I have one pdf file that I want to associate with 100 parcels, is there a way to attach the file to these 100 parcels at one time, so all the parcels reference the same attachment record in the parcel_ATTACH table? It just does not make sense if I have to attach the same file 100 times to each pacrel and create 100 records in the parcel_ATTACH table.

  In addition to my above question, can features from different feature class share the same attachment? I guess the answer would be no, since each feature class will have its own attachment table in the SDE database.

  Many thanks.

Yongzhi
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
The REST API only supports add attachment at the feature level: http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/fsaddattachment.html. You can call any of these AddAttachment method in code-behind: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLay....
0 Kudos