<?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: Display fields with domain from another table in pop-up window in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695611#M102747</link>
    <description>&lt;P&gt;Use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname" target="_self"&gt;DomainName&lt;/A&gt; function to get the description&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;output += '&amp;lt;br&amp;gt;' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table;&lt;/LI-CODE&gt;&lt;P&gt;Also, you can simplify the code a little bit&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output = "No Related Records...";
if (related_data_filtered_count &amp;gt; 0) {
  output = "Total of " + related_data_filtered_count + " records : ";
  for (var related_data_row in related_data_filtered) {
    output += '&amp;lt;br&amp;gt;' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table;
  }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 10 Apr 2026 19:09:07 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2026-04-10T19:09:07Z</dc:date>
    <item>
      <title>Display fields with domain from another table in pop-up window</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695609#M102746</link>
      <description>&lt;P&gt;I used the code block from this Esri article to pull records from a related table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/display-fields-from-a-related-table-in-the-pop-up-windo-000035545" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/display-fields-from-a-related-table-in-the-pop-up-windo-000035545&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My problem is that one of the fields in the related table has a domain assigned to it, and the Arcade code block is returning the code from the domain table instead of the description. How can I tell it to pull the description? Looking at line 10,&amp;nbsp;related_data_row.field1_table of this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var related_table = FeatureSetByName($datastore, "table");
var filter_query = "field_table= '" + $feature["field_class"] + "'";
var related_data_filtered = Filter(related_table, filter_query);
var related_data_filtered_count = Count(related_data_filtered);

var output = "";
if (related_data_filtered_count &amp;gt; 0) {
	output = "Total of " + related_data_filtered_count + " records : ";
	for (var related_data_row in related_data_filtered) {
		output += '&amp;lt;br&amp;gt;' + related_data_row.field1_table+ " - " + related_data_row.field2_table;
	}
} else {
	output = "No Related Records...";
}

return {
	type : 'text',
	text : output
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 18:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695609#M102746</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2026-04-10T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display fields with domain from another table in pop-up window</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695611#M102747</link>
      <description>&lt;P&gt;Use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname" target="_self"&gt;DomainName&lt;/A&gt; function to get the description&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;output += '&amp;lt;br&amp;gt;' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table;&lt;/LI-CODE&gt;&lt;P&gt;Also, you can simplify the code a little bit&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output = "No Related Records...";
if (related_data_filtered_count &amp;gt; 0) {
  output = "Total of " + related_data_filtered_count + " records : ";
  for (var related_data_row in related_data_filtered) {
    output += '&amp;lt;br&amp;gt;' + DomainName(related_data_row, "field1_table") + " - " + related_data_row.field2_table;
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Apr 2026 19:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695611#M102747</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2026-04-10T19:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display fields with domain from another table in pop-up window</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695612#M102748</link>
      <description>&lt;P&gt;Thanks, Ken! Worked perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2026 19:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/display-fields-with-domain-from-another-table-in/m-p/1695612#M102748</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2026-04-10T19:05:06Z</dc:date>
    </item>
  </channel>
</rss>

