<?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 Create a customised pop-up that shows the information from a related table.   in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296787#M14882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a customised pop-up in AGOL for a web layer I have uploaded that has a related table (text only).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Polygon table structure is:&lt;/P&gt;&lt;P&gt;GlobalID (GUID)&lt;/P&gt;&lt;P&gt;Area (shape_area)&lt;/P&gt;&lt;P&gt;Length (shape_length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related table structure&lt;/P&gt;&lt;P&gt;GID1 (GUID) - this is the related key back to the parent polygon table&lt;/P&gt;&lt;P&gt;Type (text)&lt;/P&gt;&lt;P&gt;Number (short)&lt;/P&gt;&lt;P&gt;Phase (text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I can click on "show related records" in the pop-up, but ideally I would like this information to be displayed in the pop-up and not in a separate table below the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing some simple arcade programming and got the expression result to work using this:&lt;/P&gt;&lt;P&gt;FeatureSetByRelationshipName($feature,"native_plantin_rel_table",["Type","Number","Phase"])&lt;/P&gt;&lt;P&gt;But when I implement this in the popup, it does not work and only get "No information available" message in the popup&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2020 18:28:55 GMT</pubDate>
    <dc:creator>Jeff_VanEtten</dc:creator>
    <dc:date>2020-03-09T18:28:55Z</dc:date>
    <item>
      <title>Create a customised pop-up that shows the information from a related table.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296787#M14882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a customised pop-up in AGOL for a web layer I have uploaded that has a related table (text only).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Polygon table structure is:&lt;/P&gt;&lt;P&gt;GlobalID (GUID)&lt;/P&gt;&lt;P&gt;Area (shape_area)&lt;/P&gt;&lt;P&gt;Length (shape_length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related table structure&lt;/P&gt;&lt;P&gt;GID1 (GUID) - this is the related key back to the parent polygon table&lt;/P&gt;&lt;P&gt;Type (text)&lt;/P&gt;&lt;P&gt;Number (short)&lt;/P&gt;&lt;P&gt;Phase (text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I can click on "show related records" in the pop-up, but ideally I would like this information to be displayed in the pop-up and not in a separate table below the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing some simple arcade programming and got the expression result to work using this:&lt;/P&gt;&lt;P&gt;FeatureSetByRelationshipName($feature,"native_plantin_rel_table",["Type","Number","Phase"])&lt;/P&gt;&lt;P&gt;But when I implement this in the popup, it does not work and only get "No information available" message in the popup&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 18:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296787#M14882</guid>
      <dc:creator>Jeff_VanEtten</dc:creator>
      <dc:date>2020-03-09T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a customised pop-up that shows the information from a related table.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296788#M14883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most commonly the Web Maps you create are for use in Collector to get what you want.&lt;/P&gt;&lt;P&gt;You will need to make a Web App using Web App Builder and related tables will show up in a pop up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296788#M14883</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2020-03-09T19:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a customised pop-up that shows the information from a related table.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296789#M14884</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/migrated-users/369252"&gt;Jeff Van Etten&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use an expression like you did, this will return a featureset, which will show when you test the expression in the editor, but this will not show in the pop-up. You will have to loop through the records in the featureset and define how to present them in the pop-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find some examples here:&amp;nbsp;&lt;A href="https://community.esri.com/message/900835-show-all-related-or-joined-attributes-in-a-popup"&gt;https://community.esri.com/message/900835-show-all-related-or-joined-attributes-in-a-popup&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 17:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296789#M14884</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-03-10T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a customised pop-up that shows the information from a related table.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296790#M14885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, this is not for collector.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 19:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296790#M14885</guid>
      <dc:creator>Jeff_VanEtten</dc:creator>
      <dc:date>2020-03-10T19:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a customised pop-up that shows the information from a related table.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296791#M14886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander&lt;/P&gt;&lt;P&gt;Have looked at the link and I can test the arcade script and it works, but when I try to use this, nothing is coming up.&amp;nbsp; Here is my arcade script.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var aquatic_id = $feature["GlobalID"];&lt;BR /&gt;var aquatic_tbl = FeatureSetByName($map,"aquatic table");&lt;BR /&gt;var sql = "GID1 = '" + aquatic_id + "'";&lt;BR /&gt;var aquatics = Filter(aquatic_tbl, sql);&lt;BR /&gt;var cnt = Count(aquatics);&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var result = "Species: ";&lt;BR /&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt; for (var aquatic in aquatics) {&lt;BR /&gt; result += TextFormatting.NewLine + " - " + aquatic.Type + " (" + aquatic.Number + ")";&lt;BR /&gt; }&lt;BR /&gt;} else {&lt;BR /&gt; result += TextFormatting.NewLine + " - No species present";&lt;BR /&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;return result;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just closed the map viewer and opened this back up and it now works!&amp;nbsp; Fantastic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="348" src="https://community.esri.com/legacyfs/online/484733_pastedImage_2.png" width="421" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 19:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-a-customised-pop-up-that-shows-the/m-p/296791#M14886</guid>
      <dc:creator>Jeff_VanEtten</dc:creator>
      <dc:date>2020-03-10T19:14:32Z</dc:date>
    </item>
  </channel>
</rss>

