<?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: Update a list widget based on selection from another widget in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528818#M10212</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160974"&gt;@JenniferAcunto&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;I wasn't aware AGOL supports hosted tables. I believe is my missing link.&amp;nbsp;Thanks so much for your insight!&lt;/P&gt;&lt;P&gt;-Mina&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 17:14:02 GMT</pubDate>
    <dc:creator>MinaNada</dc:creator>
    <dc:date>2024-08-28T17:14:02Z</dc:date>
    <item>
      <title>Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528196#M10205</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on a dashboard for invasive plant management using &lt;A href="https://nps.maps.arcgis.com/home/item.html?id=99e3e9ccfaec422db6d4266569aa19d7" target="_blank" rel="noopener"&gt;iNaturalist observations&lt;/A&gt; for the National Park Service and was wondering if it's possible to filter iNat observations based on a park a user selects.&lt;/P&gt;&lt;P&gt;Specifically, each park has a unique list of invasive plants they routinely have to deal with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to configure the dashboard so that when a user selects the park unit (e.g. Yellowstone NP), the iNaturalist observations list is updated to that park's respective list&lt;/P&gt;&lt;P&gt;This unique invasive species list is currently in a csv format, not a feature layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is this feasible in Dashboard using the widgets? If so, what's a possible workflow? Or would I need to create some sort of arcade expression?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So far, I created a selector where a user can choose the park they want.&amp;nbsp;When the selector is clicked, it will pan to the park on the map and the iNaturalist list will be updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my 1st time creating a dashboard, so any help here would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Mina&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 20:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528196#M10205</guid>
      <dc:creator>MinaNada</dc:creator>
      <dc:date>2024-08-27T20:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528582#M10211</link>
      <description>&lt;P&gt;You will need to first publish a hosted feature layer or hosted table of your invasive species data, this dataset will need to also have a column for park name. The values in this column should exactly match the park name values you have in the dataset you are using for your current park name selector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have this invasive species dataset published, you can bring it into your dashboard and create a List element with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your category selector, add your invasive species list widget to the filter Action.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/dashboards/latest/create-and-share/selectors.htm" target="_self"&gt;Use selectors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/build-an-interactive-dashboard/" target="_self"&gt;Learn.arcgis: Build an interactive dashboard&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 12:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528582#M10211</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2024-08-28T12:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528818#M10212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/160974"&gt;@JenniferAcunto&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;I wasn't aware AGOL supports hosted tables. I believe is my missing link.&amp;nbsp;Thanks so much for your insight!&lt;/P&gt;&lt;P&gt;-Mina&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 17:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1528818#M10212</guid>
      <dc:creator>MinaNada</dc:creator>
      <dc:date>2024-08-28T17:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529021#M10215</link>
      <description>&lt;P&gt;I don't think I made it explicit, but the csv list I have has no geometry. I uploaded the csv into my AGOL, but I'm unable to add it to my web map nor Dashboard.&lt;/P&gt;&lt;P&gt;I tried to create an arcade expression as an alternative, but I also don't know what is missing here:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;//iNaturlist Feature Layer
var iNat = FeatureSetByPortalItem(

    portal,
    '99e3e9ccfaec422db6d4266569aa19d7',
    0,
    [
        'taxon_species_name',
        'modified_on'
    ],
    false
);

var parkBounds = FeatureSetByPortalItem(

    portal,
    'a2848257cf5541338bab9b656440bd0c',
    0,
    [
        'UNIT_CODE'
    ],
    false
);

// Create a dictionary mapping UNIT_CODE to invasive species lists
var invasiveSpeciesDict = {
    "BITH": ["Triadica sebifera", "Salvinia minima", "Salvinia molesta", "Lygodium japonicum", "Albizia julibrissin", "Poncirus trifoliata", "Pinus elliottii", "Ligustrum sinense", "Phyllostachys aurea", "Alternanthera philoxeroides", "Melia azedarach", "Paspalum urvillei"],
    "CANA": ["Schinus terebintifolius", "Casuarina equisetifolia", "Imperata cylindrica", "Leucaena leucocephala", "Agave sisalana", "Lygodium microphyllum", "Heptapleuron actinophylla", "Heptapleuron arboricola", "Ardisia crenata", "Scaevola taccada", "Cocos nucifera", "Thespesia populnea"],
    "CONG": ["Wisteria sinensis", "Ligustrum sinense", "Lygodium japonicum", "Perilla frutescens", "Lespedeza bicolor", "Microstegium vimineum", "Melia azedarach", "Lonicera japonica", "Pueraria montana", "Albizia julibrissin", "Pteridium aquilinum", "Liquidambar styraciflua"]
};

// // Get the UNIT_CODE from the feature
var unitCode = parkBounds["UNIT_CODE"];

// // Get the species name from the feature
var speciesName = iNat["taxon_species_name"];

// Check if the UNIT_CODE exists in the dictionary
if (HasKey(invasiveSpeciesDict, unitCode)) {
    // Get the list of invasive species for the UNIT_CODE
    var speciesList = invasiveSpeciesDict[unitCode];
   
    // Check if the speciesName is in the speciesList
    return IndexOf(speciesList, speciesName) &amp;gt; -1;
} else {
    // If the UNIT_CODE is not in the dictionary, return false
    return false;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching a screenshot of what it looks like now if that helps at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 20:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529021#M10215</guid>
      <dc:creator>MinaNada</dc:creator>
      <dc:date>2024-08-28T20:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529334#M10218</link>
      <description>&lt;P&gt;Did you publish it or just upload it? If you simply uploaded, go to the Item Details and hit the publish button. For location, select None.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_0-1724934074773.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113830iB2FF2E8D0F33F14A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_0-1724934074773.png" alt="JenniferAcunto_0-1724934074773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you have a hosted table you can add it to your dashboard.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_2-1724934275464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113832i69B1F2A38E925DAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_2-1724934275464.png" alt="JenniferAcunto_2-1724934275464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your dashboard, browse to your hosted table in the Stand-alone layers section.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_1-1724934154240.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113831i85925BB8313D2481/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_1-1724934154240.png" alt="JenniferAcunto_1-1724934154240.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#GUID-DD47C642-38B4-4645-801D-2866FE90BF73" target="_self"&gt;Publish from CSV&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 12:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529334#M10218</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2024-08-29T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update a list widget based on selection from another widget</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529495#M10221</link>
      <description>&lt;P&gt;It looks like it wasn't published. I got it working and was able to add it to the dashboard. Appreciate the help on this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mina&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 15:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/update-a-list-widget-based-on-selection-from/m-p/1529495#M10221</guid>
      <dc:creator>MinaNada</dc:creator>
      <dc:date>2024-08-29T15:38:14Z</dc:date>
    </item>
  </channel>
</rss>

