<?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: Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1275033#M51252</link>
    <description>&lt;P&gt;var ExemplarPublicationGID = "UniqueID= '" + ExemplarListID + "'";&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 23:13:48 GMT</pubDate>
    <dc:creator>ChristopherCounsell</dc:creator>
    <dc:date>2023-04-03T23:13:48Z</dc:date>
    <item>
      <title>Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274367#M51204</link>
      <description>&lt;P&gt;I'm having trouble figuring out how to retrieve a field from a standalone hosted table and show it in the pop-up of a hosted feature layer. Can anyone assist?&lt;/P&gt;&lt;P&gt;Data Item Overview:&lt;BR /&gt;&lt;STRONG&gt;exemplar_list_testing (hosted feature layer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="exemplar_list_testing.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67009i676DB3DC66A59A0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="exemplar_list_testing.png" alt="exemplar_list_testing.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exemplar_publication_testing (hosted table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="exemplar_publication_testing.png" style="width: 979px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67010i09E455F4B62CF96D/image-size/large?v=v2&amp;amp;px=999" role="button" title="exemplar_publication_testing.png" alt="exemplar_publication_testing.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I aim to display the 'paragraph_description' field in the feature layer pop-up from the hosted table.&lt;/P&gt;&lt;P&gt;Current Arcade Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var ExemplarListID = $feature.UniqueID;
var ExemplarPublicationGID = "ExemplarListID = @ExemplarListID";

var ExemplarPublications = FeatureSetByName($map, "exemplar_publication_testing");
var RelatedData = Filter(ExemplarPublications, ExemplarPublicationGID);

var popupstring = "";
for (var ExemplarPublication in RelatedData){
    
    popupstring += "Paragraph Description:  " + ExemplarPublication.Paragraph_Description + TextFormatting.NewLine;
    
}
popupstring += TextFormatting.NewLine;

return popupstring;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 07:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274367#M51204</guid>
      <dc:creator>HebahFarrag</dc:creator>
      <dc:date>2023-04-01T07:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274538#M51218</link>
      <description>&lt;P&gt;There is an issue with the expression in the second line:&lt;/P&gt;&lt;P&gt;var ExemplarPublicationGID = "ExemplarListID = @ExemplarListID";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This line is setting the variable ExemplarPublicationGID to a string, which contains the literal text "ExemplarListID = @ExemplarListID". This is not a valid Arcade expression and will not evaluate correctly.&lt;/P&gt;&lt;P&gt;Instead, the expression should reference the variable ExemplarListID directly, like this:&lt;/P&gt;&lt;P&gt;var ExemplarPublicationGID = "ExemplarListID = '" + ExemplarListID + "'";&lt;/P&gt;&lt;P&gt;This sets ExemplarPublicationGID to a string that contains the value of ExemplarListID, enclosed in single quotes. This will allow the expression to be used as a filter in the Filter function.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 07:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274538#M51218</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-04-03T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274631#M51223</link>
      <description>&lt;P&gt;You can use variable substitution (see the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filter" target="_self"&gt;Filter&lt;/A&gt; help) like that, shown here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcade.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67055iB65486C6C06E54C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arcade.png" alt="arcade.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 13:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274631#M51223</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-04-03T13:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274637#M51224</link>
      <description>&lt;P&gt;There is no ExemplarListID field in the exemplar_publication_testing table. Your sql expression should be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ExemplarPublicationGID = "UniqueID = @ExemplarListID";&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Apr 2023 13:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1274637#M51224</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-04-03T13:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Record Attributes from a Hosted Table to Display in Feature Layer Pop-up with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1275033#M51252</link>
      <description>&lt;P&gt;var ExemplarPublicationGID = "UniqueID= '" + ExemplarListID + "'";&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 23:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/obtaining-record-attributes-from-a-hosted-table-to/m-p/1275033#M51252</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-04-03T23:13:48Z</dc:date>
    </item>
  </channel>
</rss>

