<?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 Formatting related table information within a popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/formatting-related-table-information-within-a/m-p/452829#M22754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am configuring a popup with information pulled from a related table using the&amp;nbsp;FeatureSetByRelationshipName function. My goal&amp;nbsp;is&amp;nbsp;to show multiple related fields side by side as shown in the attribute table. I set up a table within the HTML popup configuration but am having trouble getting the information to align properly and be placed within its own row. Do I need to be using an array&amp;nbsp;to separate the data into rows or can this be done within the HTML?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attribute table example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/483796_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Common Name - Osprey&lt;/P&gt;&lt;P&gt;Species Name - Pandion Haliaetus&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature Label - Foraging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current popup configuration:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/483795_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions to pull each field of data is the same:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var fs = FeatureSetByRelationshipName($feature,"Coastal Species" , ['COMNAME'], false);&lt;BR /&gt;var result = "";&lt;BR /&gt;var cnt = Count(fs);&lt;BR /&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt; // start loop through related records&lt;BR /&gt; for (var f in fs) {&lt;BR /&gt; // for each f (=feature) in related features, add attendee to the result&lt;BR /&gt; result += TextFormatting.NewLine + f.COMNAME;&lt;BR /&gt; } &lt;BR /&gt;} else {&lt;BR /&gt; // overwrite result with text to indicate that there are no attendees&lt;BR /&gt; result = "No data";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2020 18:57:42 GMT</pubDate>
    <dc:creator>DaveK</dc:creator>
    <dc:date>2020-03-02T18:57:42Z</dc:date>
    <item>
      <title>Formatting related table information within a popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formatting-related-table-information-within-a/m-p/452829#M22754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am configuring a popup with information pulled from a related table using the&amp;nbsp;FeatureSetByRelationshipName function. My goal&amp;nbsp;is&amp;nbsp;to show multiple related fields side by side as shown in the attribute table. I set up a table within the HTML popup configuration but am having trouble getting the information to align properly and be placed within its own row. Do I need to be using an array&amp;nbsp;to separate the data into rows or can this be done within the HTML?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attribute table example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/483796_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Common Name - Osprey&lt;/P&gt;&lt;P&gt;Species Name - Pandion Haliaetus&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature Label - Foraging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current popup configuration:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/483795_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions to pull each field of data is the same:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var fs = FeatureSetByRelationshipName($feature,"Coastal Species" , ['COMNAME'], false);&lt;BR /&gt;var result = "";&lt;BR /&gt;var cnt = Count(fs);&lt;BR /&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt; // start loop through related records&lt;BR /&gt; for (var f in fs) {&lt;BR /&gt; // for each f (=feature) in related features, add attendee to the result&lt;BR /&gt; result += TextFormatting.NewLine + f.COMNAME;&lt;BR /&gt; } &lt;BR /&gt;} else {&lt;BR /&gt; // overwrite result with text to indicate that there are no attendees&lt;BR /&gt; result = "No data";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formatting-related-table-information-within-a/m-p/452829#M22754</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2020-03-02T18:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting related table information within a popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formatting-related-table-information-within-a/m-p/452830#M22755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/Davidkrady_dep"&gt;Davidkrady_dep&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid that building an html table from a single Arcade expression is something that has been implemented in ArcGIS Pro, but not yet in the web map. You can achieve this result by using a custom html pop-up and creating an expression for each cell in the table, but multiple calls to retrieve similar information will have an impact on performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2020 14:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formatting-related-table-information-within-a/m-p/452830#M22755</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-03-08T14:12:55Z</dc:date>
    </item>
  </channel>
</rss>

