<?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: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1294527#M7889</link>
    <description>&lt;P&gt;I'm also trying to figure this out. Did you find a solution?&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 15:27:28 GMT</pubDate>
    <dc:creator>SupriyaK</dc:creator>
    <dc:date>2023-05-31T15:27:28Z</dc:date>
    <item>
      <title>How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130497#M5617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the Arcade Expression (that was described here:&lt;LI-MESSAGE title="ArcGIS Operations Dashboard Arcade Join Table )" uid="1130352" url="https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-operations-dashboard-arcade-join-table/m-p/1130352#U1130352" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; for the Indicator widget, that perform a join operation between a feature layer and a feature table, I applied the rule "&lt;SPAN&gt;When map extent changes" in Map actions for the Indicator widget. But the Widget doesn't display the data, that is empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible to customize the Arcade expression so that the widget dynamically displays data from the current extent?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130497#M5617</guid>
      <dc:creator>Norchevskyi</dc:creator>
      <dc:date>2022-01-04T19:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130508#M5618</link>
      <description>&lt;P&gt;Your FeatureSet is being set to an empty geometry type, which is better for performance. To bring in the spatial component for map filtering, etc., you need to &lt;A href="https://esri.github.io/arcgis-rest-js/api/types/GeometryType/" target="_blank"&gt;define the geometry type&lt;/A&gt; and include the geometry in your features array.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var joinedDict = {
    ...
    geometryType: "esriGeometryPoint" // or whatever geometry type applies
    ...
}

...

        joinedDict.features[i] = {
            attributes: {
                StreetID: tableID,
                Name: p["Address"],
				Depth: t["Depth"],
            },
            geometry: Geometry(p)
        }

...&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130508#M5618</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-04T19:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130544#M5619</link>
      <description>&lt;P&gt;Josh, thank you for help. I added your your edits to the expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal("https://www.arcgis.com/");
var polyfs = FeatureSetByPortalItem(portal,"2c70f00e262a4488b266595720312617",0,["*"],true);
var tablefs = FeatureSetByPortalItem(portal,"227503e1ba6848baa7227b6311c04802",0,["*"],false);

var joinedDict = {
  fields: [
    { name: "StreetID", type: "esriFieldTypeInteger" },
    { name: "Name", type: "esriFieldTypeString" },	
    { name: "Depth", type: "esriFieldTypeDouble" },
  ],
    geometryType: "esriGeometryPoint",
'features':[]};

var i = 0;
for (var t in tablefs) {
    var tableID = t["StreetID"]
    for (var p in Filter(polyfs, "StreetID = "+tableID)){
        joinedDict.features[i] = {
            attributes: {
                StreetID: tableID,
                Name: p["Address"],
				Depth: t["Depth"],
            },
            geometry: Geometry(p)
        }
    }
i++
}

return FeatureSet(Text(joinedDict));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The widget is working but does not display data w&lt;SPAN&gt;hen map extent changes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norchevskyi_0-1641326744563.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30758iE301022DA1585731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norchevskyi_0-1641326744563.png" alt="Norchevskyi_0-1641326744563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 20:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130544#M5619</guid>
      <dc:creator>Norchevskyi</dc:creator>
      <dc:date>2022-01-04T20:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130564#M5620</link>
      <description>&lt;P&gt;You added the appropriate action to the map widget? I can get it to update just fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uosl_0-1641328809030.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30762i69158DFBC6246EB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uosl_0-1641328809030.png" alt="uosl_0-1641328809030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 20:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130564#M5620</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-04T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130566#M5621</link>
      <description>&lt;P&gt;Yes, see please my screen:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norchevskyi_0-1641329007069.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30763iFCC74155138A0CC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norchevskyi_0-1641329007069.png" alt="Norchevskyi_0-1641329007069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 20:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130566#M5621</guid>
      <dc:creator>Norchevskyi</dc:creator>
      <dc:date>2022-01-04T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130570#M5622</link>
      <description>&lt;P&gt;Josh, it's very strange, but when full extent we can see all counts of features, and when zooming we see 0 features&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6290016974001w1122h540r420" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6290016974001" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6290016974001w1122h540r420');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6290016974001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 20:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130570#M5622</guid>
      <dc:creator>Norchevskyi</dc:creator>
      <dc:date>2022-01-04T20:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130579#M5623</link>
      <description>&lt;P&gt;That is very strange indeed! I created a &lt;STRONG&gt;List&lt;/STRONG&gt; widget and added a &lt;EM&gt;Flash&lt;/EM&gt; action on it. It seems that the features are coming in with just two particular points in this area:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uosl_0-1641330278755.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30765iCCAE9536EBB25837/image-size/large?v=v2&amp;amp;px=999" role="button" title="uosl_0-1641330278755.png" alt="uosl_0-1641330278755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I noticed there are only two values that show up in the Street ID field, so that seems to correspond with this. I'm assuming these values should correspond with the points layer in your screenshots, though, right?&lt;/P&gt;&lt;P&gt;Should you maybe join these based on a matching address field, rather than the street id?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 21:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130579#M5623</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-04T21:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130627#M5626</link>
      <description>&lt;P&gt;Josh, the dashhboard is working. It was my mistake, as is joined data had only two values for StreetID field. All is well, but it seems that this method can work with no more than a few hundred features, if there are several thousand features, then the dashboard takes a very long time to process the data.&lt;/P&gt;&lt;P&gt;Thank you so much for your help and time,&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 22:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1130627#M5626</guid>
      <dc:creator>Norchevskyi</dc:creator>
      <dc:date>2022-01-04T22:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1255366#M7312</link>
      <description>&lt;P&gt;I am very new to data expressions and implementing within dashboards. I am having hard time figuring out how to get the geometry function to relate to my split choices. Basically, I have a survey123 with a multiple choice question (rent_amounts) and within the dashboard I have a sidebar category. The sidebar category I was able to split out the rent amount choices, but I can't figure out how to get it to filter with the map and address points inputted. Below is the current script. Here is link to dashboard&amp;nbsp;&lt;A href="https://dgco.maps.arcgis.com/apps/dashboards/2df513c195bb4560b61145f4064484dd" target="_self"&gt;Rental Dashboard&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Reference layer using the FeatureSetByPortalItem() function. 
var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), '288db7f54ea048c5b6241f156ef0f646' , 0, ['rent_amount'], false);

// Empty dictionary to capture each rental amount reported as separate rows. 
var choicesDict = {'fields': [{ 'name': 'split_choices', 'type': 'esriFieldTypeString'}], 
                    'geometryType': 'esriGeometryPoint', 'features': []}; 

var index = 0; 

// Split comma separated rental amounts and store in dictionary.  
for (var feature in fs) { 
    var split_array  =  Split(feature["rent_amount"], ',') 
    var count_arr = Count(split_array) 
    for(var i = 0; i &amp;lt; count_arr; i++ ){ 
        choicesDict.features[index++] = { 
            'attributes': { 'split_choices': Trim(split_array[i]),  
            }} 
}} 

// Convert dictionary to featureSet. 
var fs_dict = FeatureSet(Text(choicesDict)); 

// Return featureset after grouping by rental amounts. 
return GroupBy(fs_dict, ['split_choices'], 
       [{ name: 'split_count', expression: 'split_choices', statistic: 'COUNT' }]);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 16:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1255366#M7312</guid>
      <dc:creator>ScoutStanley</dc:creator>
      <dc:date>2023-02-06T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1294527#M7889</link>
      <description>&lt;P&gt;I'm also trying to figure this out. Did you find a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1294527#M7889</guid>
      <dc:creator>SupriyaK</dc:creator>
      <dc:date>2023-05-31T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure the Arcade expression for Operations Dashboard to dynamically change data in widgets when map extent changes?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1295865#M7904</link>
      <description>&lt;P&gt;For my project with using survey123 results, I found recreating within experience builder was the way to get it to work. Below is link to post I created. Hopefully that helps out some!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-dashboards-questions/how-do-you-connect-feature-set-dictionary-to/m-p/1263000#M7427" target="_blank"&gt;https://community.esri.com/t5/arcgis-dashboards-questions/how-do-you-connect-feature-set-dictionary-to/m-p/1263000#M7427&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 16:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/how-can-i-configure-the-arcade-expression-for/m-p/1295865#M7904</guid>
      <dc:creator>ScoutStanley</dc:creator>
      <dc:date>2023-06-05T16:30:51Z</dc:date>
    </item>
  </channel>
</rss>

