<?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: Is it normal to acces the Widget's config.json only when there is not setting Folder ? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868836#M12571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your confirmation. I wasn't sure about editing manually the config.json inside the app's folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for you time,&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Alexis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2020 12:33:42 GMT</pubDate>
    <dc:creator>AlexisCuicui</dc:creator>
    <dc:date>2020-08-25T12:33:42Z</dc:date>
    <item>
      <title>Is it normal to acces the Widget's config.json only when there is not setting Folder ?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868834#M12569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;Since WebAppbuilder Developper Edition 2.16 (avaible for 2.17 too), I found some very strange behaviour of config files.&lt;/P&gt;&lt;P&gt;I am aware that there is two config.json for each widgets :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- One in the Widget Folder named "&lt;STRONG&gt;config.json&lt;/STRONG&gt;" (I will calll it &lt;STRONG&gt;Widget JSON&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- One in the "configs" folder in the app named "&lt;STRONG&gt;config_&amp;lt;label&amp;gt;.config.json&lt;/STRONG&gt;" (I will call it&amp;nbsp;&lt;STRONG&gt;App JSON&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a strange behaviour in the &lt;A href="https://github.com/magis-nc/esri-webappbuilder-widget-eDraw"&gt;eDraw &lt;/A&gt;Widget, when calling this.config i expect this one to reach the Widget Json but it seems to call the App Json. (I tried to modifiy the default Symbols ).&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="504429" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504429_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is no setting folder in a Widget, &lt;STRONG&gt;this.config&lt;/STRONG&gt; is calling the &lt;STRONG&gt;Widget Json&lt;/STRONG&gt; but when there is settings, &lt;STRONG&gt;this.config&lt;/STRONG&gt; is calling the &lt;STRONG&gt;App Json.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's my questions :&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Is it normal ? If it is,what is the "Esri" way to access te Widget Json when there is settings inside a widget.&lt;/P&gt;&lt;P&gt;- Is it existing only since Wab 2.16 or did i missed it before ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : I made 2 customs widgets test for some tests, i add them to this post. Tetsasup reach the configs/testasup/config_testasup.sjon when using &lt;STRONG&gt;this.config &lt;/STRONG&gt;and in testasup_nosetting &lt;STRONG&gt;this.config&lt;/STRONG&gt; reach the config.json inside the widget folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for you time,&lt;/P&gt;&lt;P&gt;Alexis Cuicui.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 10:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868834#M12569</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2020-08-25T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it normal to acces the Widget's config.json only when there is not setting Folder ?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868835#M12570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes that is normal and has been that way for a long time. The config.json file in the widgets folder is the default settings file for the widget and then when you make changes to the widgets settings then the app stores those changes in the apps configs folder. The way to access the widgets config file is to use this.config just like you have been. If the user has made and widget settings changes then the file that is accessed is the one in the apps configs folder, if not the the widgets default config.json will be used automatically. The way that you know which file to look for manually is in the apps main config.json file each widget is listed with the configuration path/file that it uses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 12:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868835#M12570</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-08-25T12:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it normal to acces the Widget's config.json only when there is not setting Folder ?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868836#M12571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your confirmation. I wasn't sure about editing manually the config.json inside the app's folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for you time,&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Alexis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 12:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-it-normal-to-acces-the-widget-s-config-json/m-p/868836#M12571</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2020-08-25T12:33:42Z</dc:date>
    </item>
  </channel>
</rss>

