<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Attachements in a Map Service with Identify? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309576#M28446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes&amp;nbsp; attachment needs to be in ArcSDE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2012 11:51:59 GMT</pubDate>
    <dc:creator>AurelijusDeksnys</dc:creator>
    <dc:date>2012-08-02T11:51:59Z</dc:date>
    <item>
      <title>Attachements in a Map Service with Identify?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309574#M28444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to view the attachments of my feature in the JS-API. But I see a gap between the provided samples and the functionality I want to have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My JS-API application shows several map-services, one of them has an attachment. I have implemented an Identify on all visible map-services, showing the results in a table (not with popups because I needed to have a robust, conservative interface).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The identify doesn't show attachments, even not the info if a feature has an attachment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The samples in the JS-API use the attachment functionality only in editing scenarios, with the Attachment Editor widget (and there inserting/deleting attachments is solved really trivial. I played around with that and didn't find a way to make it read-only, except hacking the css). Also, you need a feature-service, which I can't do and can't provide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, based on my map-services: Which way should I go to view attachments? Is there a path in the JS-API to get to my feature with attachments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possible way for discussion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Identify the feature.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Get the layer-ID of your returned feature.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Check if hasAttachmens are true.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Grab the Object-ID of your feature.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Provide a link to the REST-URL of your feature with the attachment endpoint. For example: &lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0/2096559/attachments"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0/2096559/attachments&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Alternatively provide links to all "attachmentInfo" objects on the JSON response: &lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0/2096559/attachments?f=json&amp;amp;pretty=true"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0/2096559/attachments?f=json&amp;amp;pretty=true&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's a lot of implementation to do and you have to dig deep in the identify functionality until any response is shown in the interface. Also you have to access the REST-URLs by hand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know any better solutions? Any implementations how you did that? Did you ever used an additional feature-service that you asked for that? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate any help and discussion on that topic (and don't bother about my implementation with the tables, because it's also missing for the standard identify widgets). For me it's a missing link to the standard identify in an ArcMap session (where the attachments are listed simply in the identify). Providing the access only with feature-layers and in an editing-workflow is a bit to short, I guess. So: Any idea to get to a workflow for that would be really helpful for all, I hope. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 08:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309574#M28444</guid>
      <dc:creator>AxelSchaefer</dc:creator>
      <dc:date>2011-07-28T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Attachements in a Map Service with Identify?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309575#M28445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found your thread after search the answers for a similar question like yours. Don't know if you have read the REST API about the attachment as the link below, though not sure if that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://atlas.resources.ca.gov/arcgis/SDK/REST/index.html?msattachment.html" rel="nofollow"&gt;http://atlas.resources.ca.gov/arcgis/SDK/REST/index.html?msattachment.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Though the given example in the above link work successfully. I tried making my own one but for it didn't work. The feature class that has attachment (a photo) is in a File Geodatabase. When click on the link of the attachment in the REST page &lt;/SPAN&gt;&lt;A href="http://xxx/ArcGIS/rest/services/Testing/JZ_map/MapServer/0/1225/attachments/1" rel="nofollow"&gt;http://xxx/ArcGIS/rest/services/Testing/JZ_map/MapServer/0/1225/attachments/1&lt;/A&gt;&lt;SPAN&gt;, I got the the following error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Error&lt;BR /&gt;Server Error - The remote server returned an error: (404) Not Found.&lt;BR /&gt;&lt;BR /&gt;Code: 500&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wondering why? Does the Feature class having attachment needs to be in ArcSDE? Or it's because there's something need to be configured in IIS? Can anyone please provide some suggestion? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 05:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309575#M28445</guid>
      <dc:creator>JackZHANG</dc:creator>
      <dc:date>2012-01-13T05:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attachements in a Map Service with Identify?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309576#M28446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes&amp;nbsp; attachment needs to be in ArcSDE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 11:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachements-in-a-map-service-with-identify/m-p/309576#M28446</guid>
      <dc:creator>AurelijusDeksnys</dc:creator>
      <dc:date>2012-08-02T11:51:59Z</dc:date>
    </item>
  </channel>
</rss>

