<?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 Changing widgets at runtime in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839906#M9133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a widget that lets the app's user select fields of a layer in a column, and then displays info for the selected field in a unique widget. (e.g. If I select Field A, then I display widget A. If I select field B, then I display widget B). I can communicate between widgets, but haven't seen any documentation on how to control loading / destroying of new widgets. I was looking into the infographics widget, and its configuration is referenced only in the main config.json, which would mean if I dynamically changed that at runtime, I'd have to reload the whole app. Is there a better way to go about this with custom widgets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2019 15:51:55 GMT</pubDate>
    <dc:creator>Phares_Andrew</dc:creator>
    <dc:date>2019-10-08T15:51:55Z</dc:date>
    <item>
      <title>Changing widgets at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839906#M9133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a widget that lets the app's user select fields of a layer in a column, and then displays info for the selected field in a unique widget. (e.g. If I select Field A, then I display widget A. If I select field B, then I display widget B). I can communicate between widgets, but haven't seen any documentation on how to control loading / destroying of new widgets. I was looking into the infographics widget, and its configuration is referenced only in the main config.json, which would mean if I dynamically changed that at runtime, I'd have to reload the whole app. Is there a better way to go about this with custom widgets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 15:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839906#M9133</guid>
      <dc:creator>Phares_Andrew</dc:creator>
      <dc:date>2019-10-08T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing widgets at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839907#M9134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phares,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So are you saying that you do not want widget A to be loaded or even an option for loading&amp;nbsp; if the user selected field B?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 18:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839907#M9134</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-08T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing widgets at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839908#M9135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah – where the widgets become dynamic features of the website that display information given the selection. Another example would be if I had a main view which would display the map, and I'd have my custom widget display a menu when pressed – then if I select item A from the list, then I load a Widget A into the map (e.g. like an infographics widget). I've made a global variable for the list item, but haven't been able to figure out loading widgets via javascript and not the config.json files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 19:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839908#M9135</guid>
      <dc:creator>Phares_Andrew</dc:creator>
      <dc:date>2019-10-08T19:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing widgets at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839909#M9136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like this thread will help then.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/221787-show-hide-layers-widget-based-on-portal-named-user-level"&gt;https://community.esri.com/thread/221787-show-hide-layers-widget-based-on-portal-named-user-level&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 19:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839909#M9136</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-08T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing widgets at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839910#M9137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't find a way to configure&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;infographics&lt;SPAN&gt;&amp;nbsp;from a different widget so I just created a graph of my own with a minimal set of configurations.. I reckon that would be easier than dynamically configure the settings of an existing widget.. even if you do manage to inject settings to the config json, I believe you need to reload the app as you said..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 01:22:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/changing-widgets-at-runtime/m-p/839910#M9137</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2019-10-15T01:22:12Z</dc:date>
    </item>
  </channel>
</rss>

