<?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: Add description to attachments in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-description-to-attachments/m-p/1155287#M4185</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507409"&gt;@Marie-ClaudeBouchard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you are adding the attachment description as a field in the feature table (as I'm interpreting it), then you would simply access that description as an attribute value from the table as you would any other value. Something like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;feature.attributes.attributeValue("photo1Description")&lt;/LI-CODE&gt;&lt;P&gt;where the "photo1Description" would be the field name. You can find examples of this throughout many of our samples and templates. If you're using the Attachment Viewer template, you can find this used in the LayerManger.qml file in /AttachmentViewer/modules directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note, you are also able to create the Attachment Viewer Instant App and use that application with our Attachment Viewer template in AppStudio. There's a great YouTube video &lt;A href="https://www.youtube.com/watch?v=_EfyJvpEbSw" target="_self"&gt;here&lt;/A&gt; that demonstrates how you can do this. I hope this helps.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Trevor Frame&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 16:50:17 GMT</pubDate>
    <dc:creator>TrevorFrame</dc:creator>
    <dc:date>2022-03-18T16:50:17Z</dc:date>
    <item>
      <title>Add description to attachments</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-description-to-attachments/m-p/1146670#M4176</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have a feature layer with about a 120 points and each of these points have or more photos attached. This layer will be used eventually to create an Attachment Viewer Instant App.&lt;/P&gt;&lt;P&gt;To make our app more interesting, we would like to add a description on each photo. The descriptions are contained in the same table that was used to add the attachments to the feature layer.&lt;/P&gt;&lt;P&gt;We tried via the configuration pop-up and Arcade expressions, but we didn't find a solution.&lt;/P&gt;&lt;P&gt;Any suggestions? Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 20:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-description-to-attachments/m-p/1146670#M4176</guid>
      <dc:creator>Marie-ClaudeBouchard</dc:creator>
      <dc:date>2022-02-22T20:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add description to attachments</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-description-to-attachments/m-p/1155287#M4185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507409"&gt;@Marie-ClaudeBouchard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you are adding the attachment description as a field in the feature table (as I'm interpreting it), then you would simply access that description as an attribute value from the table as you would any other value. Something like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;feature.attributes.attributeValue("photo1Description")&lt;/LI-CODE&gt;&lt;P&gt;where the "photo1Description" would be the field name. You can find examples of this throughout many of our samples and templates. If you're using the Attachment Viewer template, you can find this used in the LayerManger.qml file in /AttachmentViewer/modules directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note, you are also able to create the Attachment Viewer Instant App and use that application with our Attachment Viewer template in AppStudio. There's a great YouTube video &lt;A href="https://www.youtube.com/watch?v=_EfyJvpEbSw" target="_self"&gt;here&lt;/A&gt; that demonstrates how you can do this. I hope this helps.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Trevor Frame&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 16:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-description-to-attachments/m-p/1155287#M4185</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-03-18T16:50:17Z</dc:date>
    </item>
  </channel>
</rss>

