<?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: Accessing Attachments from mapService instead of featureService in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693552#M64433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map services do not support adding, updating, or deleting attachments.&amp;nbsp; You'll need a feature service to perform these operations.&amp;nbsp; However, you can query attachment information from a map service through the Attachment Infos resource (see the REST API topic &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/"&gt;here&lt;/A&gt;&lt;SPAN&gt;, under Map Service &amp;gt; Dynamic Layer/Table &amp;gt; Feature &amp;gt; Attachment Infos).&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 19:34:56 GMT</pubDate>
    <dc:creator>JesvinValencia</dc:creator>
    <dc:date>2013-08-13T19:34:56Z</dc:date>
    <item>
      <title>Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693551#M64432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is this possible? Users do not need editing ability. All the samples I've seen use featureServices and include the ability to edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rGibson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 19:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693551#M64432</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-08T19:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693552#M64433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map services do not support adding, updating, or deleting attachments.&amp;nbsp; You'll need a feature service to perform these operations.&amp;nbsp; However, you can query attachment information from a map service through the Attachment Infos resource (see the REST API topic &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/"&gt;here&lt;/A&gt;&lt;SPAN&gt;, under Map Service &amp;gt; Dynamic Layer/Table &amp;gt; Feature &amp;gt; Attachment Infos).&amp;nbsp; Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 19:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693552#M64433</guid>
      <dc:creator>JesvinValencia</dc:creator>
      <dc:date>2013-08-13T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693553#M64434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Map services do not support adding, updating, or deleting attachments.&amp;nbsp; You'll need a feature service to perform these operations.&amp;nbsp; However, you can query attachment information from a map service through the Attachment Infos resource (see the REST API topic &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/"&gt;here&lt;/A&gt;, under Map Service &amp;gt; Dynamic Layer/Table &amp;gt; Feature &amp;gt; Attachment Infos).&amp;nbsp; Hope this helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Jesvin. Good information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping there would be a way to access the info via an identifyTask from a single map service but that doesn't seem possible. As I would have as many as 20+ layers containing attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rGibson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 14:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693553#M64434</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-15T14:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693554#M64435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would echo Russell's suggestion. Often times, the attachments have already been set up in the feature class. The end users will only need to access them via the web map instead of editing them. It will be nice to make the attachments available for identify and query operations. A flag variable may be good to have to control if attachments will be returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 17:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693554#M64435</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-08-15T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693555#M64436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this is an old thread but I'm trying to do the same thing - have attachments show in when doing an identifytask.&amp;nbsp; Did you ever get this working and if so would you mind sharing how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693555#M64436</guid>
      <dc:creator>Hernando_CountyProperty_Apprai</dc:creator>
      <dc:date>2014-07-01T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Attachments from mapService instead of featureService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693556#M64437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way I have found to do it is using a feature layer with the popup template.&amp;nbsp; If you use these you can add the line showAttachments:true, and an attachment link will show in the bottom of the popup window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var template = new PopupTemplate({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "My Title",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldInfos: [&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {fieldName: "Address", label: "&amp;lt;b&amp;gt;Address:&amp;lt;/b&amp;gt;", visible: true},
&amp;nbsp;&amp;nbsp;&amp;nbsp; {fieldName: "City_1", label: "&amp;lt;b&amp;gt;City:&amp;lt;/b&amp;gt;", visible: true}],
&amp;nbsp;&amp;nbsp;&amp;nbsp; showAttachments:true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });

var featureLayer = new FeatureLayer("myurl/FeatureServer/15",{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoTemplate:template
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having this ability with a map service instead would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-attachments-from-mapservice-instead-of/m-p/693556#M64437</guid>
      <dc:creator>StevenGraf1</dc:creator>
      <dc:date>2021-12-12T05:11:17Z</dc:date>
    </item>
  </channel>
</rss>

