<?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 Custom Widget Controlling Dialog in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-controlling-dialog/m-p/1227602#M5644</link>
    <description>&lt;P&gt;I am currently working on my custom version of the Map Layers widget.&amp;nbsp; I am adding new actions that can be performed on the layer.&amp;nbsp; What I am trying to do is for specifically identified layers, allow the user to click on an info icon and display basic information about the layer.&amp;nbsp; I don't want to use the built in functionality and take them to the layer definition as it wouldn't benefit most of our users.&lt;/P&gt;&lt;P&gt;I have the action displaying correctly and executing, but am having trouble figuring out the best way to display the information in a dialog.&amp;nbsp; My thought was to create a new dialog window in the builder, and then in the action execution code, display that window and use javascript to change the text in the dialog.&lt;/P&gt;&lt;P&gt;However, I am trying to figure out how to control the dialog.&amp;nbsp; I can get to dialog information thru:&lt;/P&gt;&lt;P&gt;const state = getAppStore()?.getState();&lt;BR /&gt;const dialogs = state.appConfig.dialogs;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And I see there is an appAction.currentDialogChanged that I can run thru getAppStore().dispatch()&lt;/P&gt;&lt;P&gt;If I am on the right track (which is debatable), I'm just not sure what I need to do with the dialog settings to indicate that it should be displayed.&amp;nbsp; And I haven't been able to find anyone else trying to do the same thing in EB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on my approach or alternative approaches would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 18:44:07 GMT</pubDate>
    <dc:creator>JonathanKressin</dc:creator>
    <dc:date>2022-11-01T18:44:07Z</dc:date>
    <item>
      <title>Custom Widget Controlling Dialog</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-controlling-dialog/m-p/1227602#M5644</link>
      <description>&lt;P&gt;I am currently working on my custom version of the Map Layers widget.&amp;nbsp; I am adding new actions that can be performed on the layer.&amp;nbsp; What I am trying to do is for specifically identified layers, allow the user to click on an info icon and display basic information about the layer.&amp;nbsp; I don't want to use the built in functionality and take them to the layer definition as it wouldn't benefit most of our users.&lt;/P&gt;&lt;P&gt;I have the action displaying correctly and executing, but am having trouble figuring out the best way to display the information in a dialog.&amp;nbsp; My thought was to create a new dialog window in the builder, and then in the action execution code, display that window and use javascript to change the text in the dialog.&lt;/P&gt;&lt;P&gt;However, I am trying to figure out how to control the dialog.&amp;nbsp; I can get to dialog information thru:&lt;/P&gt;&lt;P&gt;const state = getAppStore()?.getState();&lt;BR /&gt;const dialogs = state.appConfig.dialogs;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And I see there is an appAction.currentDialogChanged that I can run thru getAppStore().dispatch()&lt;/P&gt;&lt;P&gt;If I am on the right track (which is debatable), I'm just not sure what I need to do with the dialog settings to indicate that it should be displayed.&amp;nbsp; And I haven't been able to find anyone else trying to do the same thing in EB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on my approach or alternative approaches would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-widget-controlling-dialog/m-p/1227602#M5644</guid>
      <dc:creator>JonathanKressin</dc:creator>
      <dc:date>2022-11-01T18:44:07Z</dc:date>
    </item>
  </channel>
</rss>

