<?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 Acade is not update table element when zoom in and out map view in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/acade-is-not-update-table-element-when-zoom-in-and/m-p/1355677#M8822</link>
    <description>&lt;P&gt;My Arcade Code totals the Footage and Mileage but it does not change totals when I zoom in or out in the map view.&lt;/P&gt;&lt;P&gt;Is there a setting I need to add to the Code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;var fs = FeatureSetByPortalItem(arcgisPortal, ProjectID, LayerID, ['Type', 'Footage'], true);&lt;/P&gt;&lt;P&gt;Console(Count(fs));&lt;/P&gt;&lt;P&gt;var fsDict = {&lt;BR /&gt;'fields':[{'name': 'Type', 'type':'esriFieldTypeString'},&lt;BR /&gt;{'name': 'Footage', 'type': 'esriFieldTypeDouble'},&lt;BR /&gt;{'name': 'Mileage', 'type': 'esriFieldTypeDouble'}],&lt;BR /&gt;'geometryType': '',&lt;BR /&gt;'features':[]&lt;BR /&gt;};&lt;BR /&gt;Console(fsDict)&lt;BR /&gt;Console(Count(fs));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var index = 0;&lt;BR /&gt;for (var feature in fs){&lt;BR /&gt;// Console(feature)&lt;BR /&gt;fsDict.features[index++] = {&lt;BR /&gt;'attributes': {&lt;BR /&gt;'Type': feature['Type'],&lt;BR /&gt;'Footage': feature['Footage'],&lt;BR /&gt;'Mileage': feature['Footage'] / 5280&lt;BR /&gt;},&lt;BR /&gt;geometry: Geometry(feature)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;Console(fsDict)&lt;/P&gt;&lt;P&gt;var fs_dict = FeatureSet(Text(fsDict));&lt;BR /&gt;return fs_dict&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 14:38:56 GMT</pubDate>
    <dc:creator>WilliamSchooler</dc:creator>
    <dc:date>2023-12-01T14:38:56Z</dc:date>
    <item>
      <title>Acade is not update table element when zoom in and out map view</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/acade-is-not-update-table-element-when-zoom-in-and/m-p/1355677#M8822</link>
      <description>&lt;P&gt;My Arcade Code totals the Footage and Mileage but it does not change totals when I zoom in or out in the map view.&lt;/P&gt;&lt;P&gt;Is there a setting I need to add to the Code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;var fs = FeatureSetByPortalItem(arcgisPortal, ProjectID, LayerID, ['Type', 'Footage'], true);&lt;/P&gt;&lt;P&gt;Console(Count(fs));&lt;/P&gt;&lt;P&gt;var fsDict = {&lt;BR /&gt;'fields':[{'name': 'Type', 'type':'esriFieldTypeString'},&lt;BR /&gt;{'name': 'Footage', 'type': 'esriFieldTypeDouble'},&lt;BR /&gt;{'name': 'Mileage', 'type': 'esriFieldTypeDouble'}],&lt;BR /&gt;'geometryType': '',&lt;BR /&gt;'features':[]&lt;BR /&gt;};&lt;BR /&gt;Console(fsDict)&lt;BR /&gt;Console(Count(fs));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var index = 0;&lt;BR /&gt;for (var feature in fs){&lt;BR /&gt;// Console(feature)&lt;BR /&gt;fsDict.features[index++] = {&lt;BR /&gt;'attributes': {&lt;BR /&gt;'Type': feature['Type'],&lt;BR /&gt;'Footage': feature['Footage'],&lt;BR /&gt;'Mileage': feature['Footage'] / 5280&lt;BR /&gt;},&lt;BR /&gt;geometry: Geometry(feature)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;Console(fsDict)&lt;/P&gt;&lt;P&gt;var fs_dict = FeatureSet(Text(fsDict));&lt;BR /&gt;return fs_dict&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/acade-is-not-update-table-element-when-zoom-in-and/m-p/1355677#M8822</guid>
      <dc:creator>WilliamSchooler</dc:creator>
      <dc:date>2023-12-01T14:38:56Z</dc:date>
    </item>
  </channel>
</rss>

