<?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: Popup based on Arcade featureset / dictionary in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1235905#M7036</link>
    <description>&lt;P&gt;I am also struggling with the same goal! There is no documentation to simply return a field from a feature set. I was using a filterStatement but this filters the entire feature set, I can't figure out how to pull a specific field to display in my pop-up.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 15:09:47 GMT</pubDate>
    <dc:creator>AdriannaBarton</dc:creator>
    <dc:date>2022-11-29T15:09:47Z</dc:date>
    <item>
      <title>Popup based on Arcade featureset / dictionary</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1218176#M6866</link>
      <description>&lt;P&gt;Hi, I have created Featureset based on the attributes joined from two layers. Now, my intent is to configure popup based on the fields from the featureset/dictionary created in the arcade. I am not sure how to return the fields for the popup window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code so far is as here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var portal = Portal("portallink")&lt;BR /&gt;var Grid = FeatureSetByPortalItem(&lt;BR /&gt;portal,&lt;BR /&gt;"itemid",&lt;BR /&gt;1,&lt;BR /&gt;["*"],&lt;BR /&gt;false&lt;BR /&gt;);&lt;BR /&gt;var Loading = FeatureSetByPortalItem(&lt;BR /&gt;portal,&lt;BR /&gt;"itemid",&lt;BR /&gt;3,&lt;BR /&gt;["*"],&lt;BR /&gt;false&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;// Create empty features array and feat object&lt;BR /&gt;var features = [];&lt;BR /&gt;var feat;&lt;/P&gt;&lt;P&gt;for (var t in Loading) {&lt;BR /&gt;var tableID = t["GRID_ID"]&lt;BR /&gt;for (var p in Filter(Grid, "stationid= '"+tableID+"'")){&lt;BR /&gt;feat = {&lt;BR /&gt;attributes: {&lt;BR /&gt;Name: t["GRID_STATION"],&lt;BR /&gt;Grid_ID:tableID,&lt;BR /&gt;Grid_Amp:t["GRID_LOADINGS_AMP"],&lt;BR /&gt;Grid_Per:t["GRID_PER"]&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Push(features, feat)&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var joinedDict = {&lt;BR /&gt;fields: [&lt;BR /&gt;{ name: "Name", type: "esriFieldTypeString" },&lt;BR /&gt;{ name: "Grid_ID", type: "esriFieldTypeString" },&lt;BR /&gt;{ name: "Grid_Amp", type: "esriFieldTypeString" },&lt;BR /&gt;{ name: "Grid_Per", type: "esriFieldTypeString" },&lt;/P&gt;&lt;P&gt;],&lt;BR /&gt;'geometryType': '',&lt;BR /&gt;'features':features&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Return dictionary cast as a feature set&lt;BR /&gt;return FeatureSet(Text(joinedDict));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 06:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1218176#M6866</guid>
      <dc:creator>junaidjawaid</dc:creator>
      <dc:date>2022-10-03T06:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Popup based on Arcade featureset / dictionary</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1235905#M7036</link>
      <description>&lt;P&gt;I am also struggling with the same goal! There is no documentation to simply return a field from a feature set. I was using a filterStatement but this filters the entire feature set, I can't figure out how to pull a specific field to display in my pop-up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1235905#M7036</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-11-29T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Popup based on Arcade featureset / dictionary</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1236392#M7038</link>
      <description>&lt;P&gt;I finally found a spec of info! Hidden towards the bottom is a for-loop arcade script that I was able to use.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/mapping/mapping/whats-new-with-arcade-taking-a-stroll-through-featuresets-part-2/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/mapping/mapping/whats-new-with-arcade-taking-a-stroll-through-featuresets-part-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/popup-based-on-arcade-featureset-dictionary/m-p/1236392#M7038</guid>
      <dc:creator>AdriannaBarton</dc:creator>
      <dc:date>2022-11-30T15:29:38Z</dc:date>
    </item>
  </channel>
</rss>

