<?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 Using Arcade to View Photos in a related table via popup in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053484#M5840</link>
    <description>&lt;P&gt;I'd like to show the photos, if any by a listing in the popup.&amp;nbsp; &amp;nbsp; I have this so far, but can't get to the photo.&lt;/P&gt;&lt;P&gt;Any suggestions on how to get the related photo as a listing in the popup?&lt;/P&gt;&lt;P&gt;var relatedrecords = FeatureSetByRelationshipName($feature,"COREs_photos")&lt;BR /&gt;var cnt = Count(relatedrecords);&lt;BR /&gt;var result = "Related records: " + cnt;&lt;BR /&gt;if (cnt&amp;gt;0)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;for (var row in relatedrecords) {&lt;BR /&gt;result += TextFormatting.NewLine + row.globalid;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;return result;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 23:07:47 GMT</pubDate>
    <dc:creator>MeleKoneya</dc:creator>
    <dc:date>2021-04-30T23:07:47Z</dc:date>
    <item>
      <title>Using Arcade to View Photos in a related table via popup</title>
      <link>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053484#M5840</link>
      <description>&lt;P&gt;I'd like to show the photos, if any by a listing in the popup.&amp;nbsp; &amp;nbsp; I have this so far, but can't get to the photo.&lt;/P&gt;&lt;P&gt;Any suggestions on how to get the related photo as a listing in the popup?&lt;/P&gt;&lt;P&gt;var relatedrecords = FeatureSetByRelationshipName($feature,"COREs_photos")&lt;BR /&gt;var cnt = Count(relatedrecords);&lt;BR /&gt;var result = "Related records: " + cnt;&lt;BR /&gt;if (cnt&amp;gt;0)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;for (var row in relatedrecords) {&lt;BR /&gt;result += TextFormatting.NewLine + row.globalid;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;return result;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 23:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053484#M5840</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2021-04-30T23:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to View Photos in a related table via popup</title>
      <link>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053488#M5841</link>
      <description>&lt;P&gt;From my experience, getting Arcade to spit out a single URL, to a file or a web page, works just fine.&lt;/P&gt;&lt;P&gt;Returning a &lt;EM&gt;series&lt;/EM&gt; of individual items, however, I don't think can be done. At least, not with a single expression.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 23:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053488#M5841</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-04-30T23:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to View Photos in a related table via popup</title>
      <link>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053921#M5848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6782"&gt;@MeleKoneya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;mentions an Arcade expression in a web map is not be able to return HTML with multiples hyperlinks (in ArcGIS Pro you can do this).&lt;/P&gt;&lt;P&gt;If the pop-up needs to show multiple attachments, the (New) Map viewer is able to do this. If you have multiple picture attachments they will show up in the pop-up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XanderBakker_0-1620067522715.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12434i5F79AEED321EFF53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XanderBakker_0-1620067522715.png" alt="XanderBakker_0-1620067522715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can enter the settings and switch off the list option to preview the pictures a bit bigger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XanderBakker_1-1620067588027.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12435i49E050204201B4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XanderBakker_1-1620067588027.png" alt="XanderBakker_1-1620067588027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 18:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-arcade-to-view-photos-in-a-related-table-via/m-p/1053921#M5848</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-05-03T18:47:42Z</dc:date>
    </item>
  </channel>
</rss>

