<?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: Arcade expression for pop-up attachment in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402550#M39101</link>
    <description>&lt;P&gt;Are you running this expression in ArcGIS Enterprise? Map was introduced at 11.0, so if you're on an earlier version, you won't have access to it.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 12:21:32 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-03-29T12:21:32Z</dc:date>
    <item>
      <title>Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1401964#M39081</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;I found in this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-blog/show-attachments-in-pop-ups-with-arcade/ba-p/890588" target="_self"&gt;https://community.esri.com/t5/arcgis-online-blog/show-attachments-in-pop-ups-with-arcade/ba-p/890588&lt;/A&gt; how to display the first attachment. I'd like&amp;nbsp;to view the other attachments by retrieving the list of attachment identifiers using arcade to calculate a new field:&lt;/P&gt;&lt;P&gt;//calculate the attach IDs field&lt;BR /&gt;function IDs(f){&lt;BR /&gt;return f.ID;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var Attach_ = Attachments($feature);&lt;BR /&gt;var AttachIDs = Map(Attach_, IDs);&lt;BR /&gt;return Concatenate(AttachIDs,',');&lt;/P&gt;&lt;P&gt;I don't understand why this isn't working. Can you help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1401964#M39081</guid>
      <dc:creator>Rémi</dc:creator>
      <dc:date>2024-03-28T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1401990#M39082</link>
      <description>&lt;P&gt;Hard to say why it isn't working. Try adding a couple Console statements to see what each step is doing, as that can identify where the process is breaking down.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/calculate the attach IDs field
function IDs(f) {
  return f.ID;
}

var Attach_ = Attachments($feature);
Console(Text(Attach_));
var AttachIDs = Map(Attach_, IDs);
Console(Text(AttachIDs))
return Concatenate(AttachIDs,',');&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1401990#M39082</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-28T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402526#M39099</link>
      <description>&lt;P&gt;Thank you for your reply. I get the following error : invalid expression. Error on line 8 Unknown function&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 08:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402526#M39099</guid>
      <dc:creator>Rémi</dc:creator>
      <dc:date>2024-03-29T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402550#M39101</link>
      <description>&lt;P&gt;Are you running this expression in ArcGIS Enterprise? Map was introduced at 11.0, so if you're on an earlier version, you won't have access to it.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 12:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402550#M39101</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-29T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402566#M39103</link>
      <description>&lt;P&gt;Unfortunately, I'm in version 10.9!&lt;/P&gt;&lt;P&gt;I don't know how i can retrieve attachment identifiers...&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 13:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402566#M39103</guid>
      <dc:creator>Rémi</dc:creator>
      <dc:date>2024-03-29T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402573#M39104</link>
      <description>&lt;P&gt;You can do it with a simple loop, no need to use Map (though it would make for more concise code).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var atts = Attachments($feature)
var ids = []

// loop through attachments and get the ids
for (var a in atts) {
  Push(ids, atts[a]['ID'])
}

return Concatenate(ids, ', ')&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Mar 2024 13:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402573#M39104</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-29T13:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for pop-up attachment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402598#M39105</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks a lot for your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 14:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-pop-up-attachment/m-p/1402598#M39105</guid>
      <dc:creator>Rémi</dc:creator>
      <dc:date>2024-03-29T14:51:11Z</dc:date>
    </item>
  </channel>
</rss>

