<?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 Managing config files in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784427#M2993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my app, I integrated a method for one widget to control the opening/closing of any amount of other widgets (in this case infographics). Everything is working but I want to make sure that I'm going about it the right way: each widget that can be opened/closed has the property "visible":false set in my app's config.json (so that each widget starts as closed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I save changes made in the web appbuilder interface, this causes Web AppBuilder to delete every app that has visibility set to false (so that I have to add the files and fix the config.json file each time I need to make changes from the interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also due to having 30+ config files, I tried sorting out my config/{widgetname}/ directory into separate folders, but on save from Web AppBuilder, it deletes the folders and adds the prefix "config_" to all contents in the directory (even though each config is already prefixed by "config_", so that the name becomes "config_config_...&amp;nbsp; ") As this seems counter intuitive, an I approaching this incorrectly? Is there some way to disable Web AppBuilder's automated config management?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2019 17:05:34 GMT</pubDate>
    <dc:creator>Phares_Andrew</dc:creator>
    <dc:date>2019-10-29T17:05:34Z</dc:date>
    <item>
      <title>Managing config files</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784427#M2993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my app, I integrated a method for one widget to control the opening/closing of any amount of other widgets (in this case infographics). Everything is working but I want to make sure that I'm going about it the right way: each widget that can be opened/closed has the property "visible":false set in my app's config.json (so that each widget starts as closed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I save changes made in the web appbuilder interface, this causes Web AppBuilder to delete every app that has visibility set to false (so that I have to add the files and fix the config.json file each time I need to make changes from the interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also due to having 30+ config files, I tried sorting out my config/{widgetname}/ directory into separate folders, but on save from Web AppBuilder, it deletes the folders and adds the prefix "config_" to all contents in the directory (even though each config is already prefixed by "config_", so that the name becomes "config_config_...&amp;nbsp; ") As this seems counter intuitive, an I approaching this incorrectly? Is there some way to disable Web AppBuilder's automated config management?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784427#M2993</guid>
      <dc:creator>Phares_Andrew</dc:creator>
      <dc:date>2019-10-29T17:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Managing config files</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784428#M2994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would highly recommend looking into examples inside other widgets on how to control and manipulate&amp;nbsp;widget's behaviors properly, rather than hacking them in the cost of fixing&amp;nbsp;side-effects like the one you describe.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Controlling visibility and behaviors can be done easily through the WidgetManager and&amp;nbsp;PanelManager objects rather than touching configuration files. They have functions to close, open and configure widgets in the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 23:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784428#M2994</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2019-10-30T23:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Managing config files</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784429#M2995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply – I'm following the explanation &lt;A _jive_internal="true" href="https://community.esri.com/thread/174605"&gt;here&lt;/A&gt; to use the widget and panel managers open / close, and widgets configs I have defined with "visibility":false in the main config are deleted when I save Web AppBuilder.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;One fix I found was to move the widgets out of the widgetpool and into widgetonscreen. When I do this Web AppBuilder recognizes the widgets, but I'm not sure why this works. Is there a reason not to declare widgets in the widgetpool with the propertery visible set to false?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/managing-config-files/m-p/784429#M2995</guid>
      <dc:creator>Phares_Andrew</dc:creator>
      <dc:date>2019-10-31T15:44:27Z</dc:date>
    </item>
  </channel>
</rss>

