<?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 to programmatically get another widget's current state? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1351031#M9447</link>
    <description>&lt;P&gt;I was afraid of that, thanks for that information&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;.&amp;nbsp;Seems backwards that they let you set another components state but won't let you read it.&lt;BR /&gt;&lt;BR /&gt;I am new to React, probably should take a step back and learn it better first. Thanks again!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 19:30:39 GMT</pubDate>
    <dc:creator>RyanCoodey</dc:creator>
    <dc:date>2023-11-17T19:30:39Z</dc:date>
    <item>
      <title>How to programmatically get another widget's current state?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1350963#M9444</link>
      <description>&lt;P&gt;I am trying to get the current state of an out of the box widget (filter) but not finding a way to get it. I can easily set the state of that widget with:&amp;nbsp;getAppStore().dispatch(appActions.widgetConfigUpgraded("widget_65", config)). But how can I get the current state from "widget_65" (which is inside a sidebar and navigation section if that matters)?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;getAppStore().getState().widgetsRuntimeInfo?.["widget_65"]?.state&lt;OL&gt;&lt;LI&gt;state is never set. The runtime info only has one property for isClassLoaded which is true.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;getAppStore().getState().widgetsState["widget_65"]&lt;OL&gt;&lt;LI&gt;widgetsState does not contain the widget, it only has a list and the sidebar. Neither which seem to expose their state either.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;getAppStore().getState().appConfig.widgets["widget_65"]&lt;OL&gt;&lt;LI&gt;I can get the state from this, but it is not the current state and is the initially loaded one, which makes sense coming from appConfig.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;WidgetManager.getInstance() not seeing any option in it to get the state.&lt;/LI&gt;&lt;LI&gt;Can I use&amp;nbsp;getAppStore().subscribe, not seeing how to get the state though.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I feel like I am missing something simple, any advice is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 17:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1350963#M9444</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2023-11-17T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get another widget's current state?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1350991#M9445</link>
      <description>&lt;P&gt;If I am remembering my React quirks correctly, state is an internal property to each component and not accessible outside of the component.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 18:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1350991#M9445</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-11-17T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get another widget's current state?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1351031#M9447</link>
      <description>&lt;P&gt;I was afraid of that, thanks for that information&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;.&amp;nbsp;Seems backwards that they let you set another components state but won't let you read it.&lt;BR /&gt;&lt;BR /&gt;I am new to React, probably should take a step back and learn it better first. Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1351031#M9447</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2023-11-17T19:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get another widget's current state?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1552301#M15639</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3137"&gt;@RyanCoodey&lt;/a&gt;&amp;nbsp;I'm stuck with this as well. I'm using DataSourceComponent to listen for data source selection changes but only want to do this if my OOTB Search widget is active/open. Were you able to find a way to get the state of other widgets from your custom widget?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 13:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-programmatically-get-another-widget-s/m-p/1552301#M15639</guid>
      <dc:creator>JarrettGreen</dc:creator>
      <dc:date>2024-10-25T13:23:06Z</dc:date>
    </item>
  </channel>
</rss>

