<?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 Attachments from feature layer service not displaying in my JavaScript application. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachments-from-feature-layer-service-not/m-p/393060#M36268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. I just want to view the attachments of a feature service available online. I do not want to edit, delete, or add attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I open the feature service using AGOL I am able to view the attachment link when clicking on the point. However, if I try to add the feature service to my JS application, I cannot get the link to the attachments to display. Other fields display correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; function createFeatureLayer(layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate(
&amp;nbsp;&amp;nbsp;&amp;nbsp; "${stormdate}",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "${dod_txt}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; );
&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = new esri.layers.FeatureLayer(layer.url, {
&amp;nbsp;&amp;nbsp; infoTemplate: infoTemplate,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasAttachments: true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; attachmentEditor = new esri.dijit.editing.AttachmentEditor({}, dojo.byId("content"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachmentEditor.startup();
&amp;nbsp; feature.on("click", function(evt) {
&amp;nbsp;&amp;nbsp; attachmentEditor.showAttachments(evt.graphic,feature);
&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 18:44:14 GMT</pubDate>
    <dc:creator>AndrewL</dc:creator>
    <dc:date>2014-04-22T18:44:14Z</dc:date>
    <item>
      <title>Attachments from feature layer service not displaying in my JavaScript application.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachments-from-feature-layer-service-not/m-p/393060#M36268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. I just want to view the attachments of a feature service available online. I do not want to edit, delete, or add attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I open the feature service using AGOL I am able to view the attachment link when clicking on the point. However, if I try to add the feature service to my JS application, I cannot get the link to the attachments to display. Other fields display correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; function createFeatureLayer(layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new esri.InfoTemplate(
&amp;nbsp;&amp;nbsp;&amp;nbsp; "${stormdate}",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "${dod_txt}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; );
&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = new esri.layers.FeatureLayer(layer.url, {
&amp;nbsp;&amp;nbsp; infoTemplate: infoTemplate,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields: ["*"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasAttachments: true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; attachmentEditor = new esri.dijit.editing.AttachmentEditor({}, dojo.byId("content"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachmentEditor.startup();
&amp;nbsp; feature.on("click", function(evt) {
&amp;nbsp;&amp;nbsp; attachmentEditor.showAttachments(evt.graphic,feature);
&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
&amp;nbsp; });

&amp;nbsp;&amp;nbsp;&amp;nbsp; return feature;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 18:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attachments-from-feature-layer-service-not/m-p/393060#M36268</guid>
      <dc:creator>AndrewL</dc:creator>
      <dc:date>2014-04-22T18:44:14Z</dc:date>
    </item>
  </channel>
</rss>

