<?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 Config.json shown instead of the setting UI in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/config-json-shown-instead-of-the-setting-ui/m-p/806413#M5850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied the setting page from the &lt;A href="https://developers.arcgis.com/web-appbuilder/guide/make-widget-configurable.htm" rel="nofollow"&gt;Demo widget&lt;/A&gt; and I try to adjust it to suit my widget. My &lt;CODE&gt;config.json&lt;/CODE&gt; contains the &lt;CODE&gt;configText&lt;/CODE&gt; variable and several others as well. When I open the config window for my widget in &lt;CODE&gt;app1&lt;/CODE&gt;, I see only the config.json contents, not UI as for other widgets. I can edit the JSON code freely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I found no way to use any &lt;A _jive_internal="true" href="https://community.esri.com/message/599994"&gt;more complex debugging options&lt;/A&gt; or even how to debug the &lt;CODE&gt;settings.js&lt;/CODE&gt; through FireBug (I can debug &lt;CODE&gt;Widget.js&lt;/CODE&gt;, which works), so I can't confirm that the &lt;CODE&gt;setting&lt;/CODE&gt; code is not even loaded, but it doesn't seem to respond to changes in my &lt;CODE&gt;setting.js&lt;/CODE&gt; or &lt;CODE&gt;setting.html&lt;/CODE&gt; files. The files seem to be on their places (config is read from &lt;CODE&gt;WAB/server/apps/6/configs/MyWidget/config_MyWidget.json&lt;/CODE&gt; and the widget from &lt;CODE&gt;WAB/server/widgets/MyWidget/&lt;/CODE&gt;), though I might have forgotten to check something. The &lt;CODE&gt;setting&lt;/CODE&gt; code is exactly like in the &lt;CODE&gt;Demo&lt;/CODE&gt; widget, except I renamed &lt;CODE&gt;baseClass&lt;/CODE&gt; from &lt;CODE&gt;jimu-widget-demo-setting&lt;/CODE&gt; to &lt;CODE&gt;jimu-widget-my-widget-setting&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can I do, and especially, why do I get the json instead of the UI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full disclosure: I've reposted this from &lt;A href="http://gis.stackexchange.com/q/187967/12768"&gt;gis.stackexchange.com&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 06:44:18 GMT</pubDate>
    <dc:creator>PavelVeselský1</dc:creator>
    <dc:date>2016-04-06T06:44:18Z</dc:date>
    <item>
      <title>Config.json shown instead of the setting UI</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/config-json-shown-instead-of-the-setting-ui/m-p/806413#M5850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied the setting page from the &lt;A href="https://developers.arcgis.com/web-appbuilder/guide/make-widget-configurable.htm" rel="nofollow"&gt;Demo widget&lt;/A&gt; and I try to adjust it to suit my widget. My &lt;CODE&gt;config.json&lt;/CODE&gt; contains the &lt;CODE&gt;configText&lt;/CODE&gt; variable and several others as well. When I open the config window for my widget in &lt;CODE&gt;app1&lt;/CODE&gt;, I see only the config.json contents, not UI as for other widgets. I can edit the JSON code freely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I found no way to use any &lt;A _jive_internal="true" href="https://community.esri.com/message/599994"&gt;more complex debugging options&lt;/A&gt; or even how to debug the &lt;CODE&gt;settings.js&lt;/CODE&gt; through FireBug (I can debug &lt;CODE&gt;Widget.js&lt;/CODE&gt;, which works), so I can't confirm that the &lt;CODE&gt;setting&lt;/CODE&gt; code is not even loaded, but it doesn't seem to respond to changes in my &lt;CODE&gt;setting.js&lt;/CODE&gt; or &lt;CODE&gt;setting.html&lt;/CODE&gt; files. The files seem to be on their places (config is read from &lt;CODE&gt;WAB/server/apps/6/configs/MyWidget/config_MyWidget.json&lt;/CODE&gt; and the widget from &lt;CODE&gt;WAB/server/widgets/MyWidget/&lt;/CODE&gt;), though I might have forgotten to check something. The &lt;CODE&gt;setting&lt;/CODE&gt; code is exactly like in the &lt;CODE&gt;Demo&lt;/CODE&gt; widget, except I renamed &lt;CODE&gt;baseClass&lt;/CODE&gt; from &lt;CODE&gt;jimu-widget-demo-setting&lt;/CODE&gt; to &lt;CODE&gt;jimu-widget-my-widget-setting&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can I do, and especially, why do I get the json instead of the UI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full disclosure: I've reposted this from &lt;A href="http://gis.stackexchange.com/q/187967/12768"&gt;gis.stackexchange.com&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 06:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/config-json-shown-instead-of-the-setting-ui/m-p/806413#M5850</guid>
      <dc:creator>PavelVeselský1</dc:creator>
      <dc:date>2016-04-06T06:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Config.json shown instead of the setting UI</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/config-json-shown-instead-of-the-setting-ui/m-p/806414#M5851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have another app, let's call it &lt;CODE&gt;app2&lt;/CODE&gt;. In it, my widget's settings returned an error: &lt;CODE&gt;Create widget setting page error:widget/MyWidget/Widget&lt;/CODE&gt; I tried to find out the reason for the different behavior, so I copied the setting code from &lt;CODE&gt;app1&lt;/CODE&gt; to &lt;CODE&gt;app2&lt;/CODE&gt;. Before, there was an error in &lt;CODE&gt;app2&lt;/CODE&gt; due to failed attempt to copy another widget's settings there (more complex than the &lt;CODE&gt;Demo&lt;/CODE&gt; widget's), and it was corrected by this simplification, so the settings page shows normally now in &lt;CODE&gt;app2&lt;/CODE&gt;. In &lt;CODE&gt;app1&lt;/CODE&gt;, I still saw the &lt;CODE&gt;config.json&lt;/CODE&gt; until I found that I have the &lt;CODE&gt;"hasSettingPage"&lt;/CODE&gt;, &lt;CODE&gt;"hasSettingUIFile"&lt;/CODE&gt;, &lt;CODE&gt;"hasSettingLocale"&lt;/CODE&gt; and &lt;CODE&gt;"hasSettingStyle"&lt;/CODE&gt; set to &lt;CODE&gt;false&lt;/CODE&gt;. I changed them to &lt;CODE&gt;true&lt;/CODE&gt; and the issue is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 10:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/config-json-shown-instead-of-the-setting-ui/m-p/806414#M5851</guid>
      <dc:creator>PavelVeselský1</dc:creator>
      <dc:date>2016-04-06T10:21:50Z</dc:date>
    </item>
  </channel>
</rss>

