<?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: Arcade expression for related features don't show in popup in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204433#M33808</link>
    <description>Yes to both. Just added from the attributes list once created.&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Aug 2022 08:36:22 GMT</pubDate>
    <dc:creator>Ulises</dc:creator>
    <dc:date>2022-08-19T08:36:22Z</dc:date>
    <item>
      <title>Arcade expression for related features don't show in popup</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204204#M33802</link>
      <description>&lt;P&gt;I'm testing how to show an arcade expression in a popup that filter and relates data.&amp;nbsp; Following an example in a blog I want to show data from a point hosted layer in a polygon hosted layer popup.&amp;nbsp; My code is...&lt;/P&gt;&lt;P&gt;var portal = Portal("https://&amp;lt;&amp;lt;myportal&amp;gt;&amp;gt;/portal")&lt;BR /&gt;var permisos = FeatureSetByPortalItem(portal,"59e9fa29fcb149148dd95b6ea7fb3364", 0,['Caso','catastro'],true);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;var Parcela = $feature["NUM_CATASTRO"]&lt;BR /&gt;var filterStatement = 'catastro = @Parcela'&lt;/P&gt;&lt;P&gt;var relatedData = Filter(permisos,filterStatement)&lt;/P&gt;&lt;P&gt;var relatedDataSorted = OrderBy(relatedData,'caso asc')&lt;/P&gt;&lt;P&gt;var popupString = ''&lt;BR /&gt;&lt;BR /&gt;popupString +=&lt;BR /&gt;"Parcela: " +&lt;BR /&gt;DefaultValue($feature["NUM_CATASTRO"], 'no data') + TextFormatting.NewLine +&lt;BR /&gt;"OLDPID: " + DefaultValue($feature["OLDPID"], 'no data') + TextFormatting.NewLine +&lt;BR /&gt;TextFormatting.NewLine&lt;BR /&gt;&lt;BR /&gt;for (var f in relatedDataSorted){&lt;BR /&gt;popupString +=&lt;BR /&gt;"PermisoID: " +&lt;BR /&gt;DefaultValue(f.Caso, 'no data') + TextFormatting.NewLine&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;DefaultValue(popupString, 'No measurements to show')&lt;/P&gt;&lt;P&gt;return popupString&lt;/P&gt;&lt;P&gt;I can successfully test the expression in the dialog window.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ulises_0-1660835627583.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48918iE90E8A43276B5DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ulises_0-1660835627583.png" alt="Ulises_0-1660835627583.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the popup just don't show the results expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ulises_1-1660835721168.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48919i5BA7C1731F2E7B80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ulises_1-1660835721168.png" alt="Ulises_1-1660835721168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ulises_2-1660835737016.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48920i88487FF3793219F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ulises_2-1660835737016.png" alt="Ulises_2-1660835737016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 15:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204204#M33802</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2022-08-18T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for related features don't show in popup</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204431#M33807</link>
      <description>&lt;P&gt;Is this expression actually {expression/expr0}?&lt;/P&gt;&lt;P&gt;Have you actually applied the popup config? The popup only changes after you click OK in the configuration window.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204431#M33807</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-19T08:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for related features don't show in popup</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204433#M33808</link>
      <description>Yes to both. Just added from the attributes list once created.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1204433#M33808</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2022-08-19T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for related features don't show in popup</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1205388#M33835</link>
      <description>&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;The popup showing the Arcade expression works fine when using the new Map Viewer.&amp;nbsp; I was testing and using the Classic Map Viewer.&amp;nbsp; Had some issues with the new viewer hence I was testing in the classic viewer.&amp;nbsp; Guess it will depends on what your working with to see in which version of the map viewer will work.&amp;nbsp; Always test in both versions.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcade-expression-for-related-features-don-t-show/m-p/1205388#M33835</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2022-08-23T14:18:30Z</dc:date>
    </item>
  </channel>
</rss>

