<?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 Errors with Setting hasSettingUIFile false in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53184#M1499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use &lt;SPAN style="color: #a31515;"&gt;dojo/text!&lt;/SPAN&gt; to populate the templateString for my 3D widget's Setting page programmatically, rather than the default behaviour of loading the Setting.html page in the widget's folder. I expected this should be possible if I set the hasSettingUIFile property to false in the manifest.json file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, I spotted a 404 in the network traffic. The url it was attempting to load was:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://{my machine name}.{my domain}:3344/webappbuilder/null" title="http://{my machine name}.{my domain}:3344/webappbuilder/null"&gt;http://{my machine name}.{my domain}:3344/webappbuilder/null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up working around it by overriding the "&lt;SPAN style="color: #000000;"&gt;postscript" function like so:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 16px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; postscript: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(widget) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; widget.templateString &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; template;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.inherited(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;(where "template" was populated via use of "dojo/text!{file path}" in the "define" method.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is this a bug in Web AppBuilder? The equivalent setting of &lt;/SPAN&gt;&lt;SPAN style="color: #0451a5;"&gt;hasUIFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; seems to work correctly. It's just the settings page that has problems.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Also, the same setting seems to work in a 2D version of the widget. It's just the 3D one that's failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2018 21:01:37 GMT</pubDate>
    <dc:creator>KenLyon</dc:creator>
    <dc:date>2018-12-10T21:01:37Z</dc:date>
    <item>
      <title>Errors with Setting hasSettingUIFile false</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53184#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use &lt;SPAN style="color: #a31515;"&gt;dojo/text!&lt;/SPAN&gt; to populate the templateString for my 3D widget's Setting page programmatically, rather than the default behaviour of loading the Setting.html page in the widget's folder. I expected this should be possible if I set the hasSettingUIFile property to false in the manifest.json file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, I spotted a 404 in the network traffic. The url it was attempting to load was:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://{my machine name}.{my domain}:3344/webappbuilder/null" title="http://{my machine name}.{my domain}:3344/webappbuilder/null"&gt;http://{my machine name}.{my domain}:3344/webappbuilder/null&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up working around it by overriding the "&lt;SPAN style="color: #000000;"&gt;postscript" function like so:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 16px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; postscript: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(widget) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; widget.templateString &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; template;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.inherited(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;(where "template" was populated via use of "dojo/text!{file path}" in the "define" method.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is this a bug in Web AppBuilder? The equivalent setting of &lt;/SPAN&gt;&lt;SPAN style="color: #0451a5;"&gt;hasUIFile&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; seems to work correctly. It's just the settings page that has problems.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Also, the same setting seems to work in a 2D version of the widget. It's just the 3D one that's failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53184#M1499</guid>
      <dc:creator>KenLyon</dc:creator>
      <dc:date>2018-12-10T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Setting hasSettingUIFile false</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53185#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When examining the code base for the 3D WidgetManager.js and the 2D WidgetManager.js the code seems to be identical for checking the manifest resources...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you are running into this issue. Have you double checked you spelling and cAsE for the property in the manifest.json?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53185#M1500</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-11T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Setting hasSettingUIFile false</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53186#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I tried again and now it seems to be working fine. I'm not sure what exactly I had wrong before, but now I'm able to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 16px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0451a5;"&gt;"hasSettingUIFile"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the manifest and delete the setting/Setting.html file from my widget folder in client/stemapp3d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I no longer need to wait until the &lt;SPAN style="color: #008000;"&gt;postscript&lt;/SPAN&gt; function to set the templateString, since it's not being sent to the contents of the default file. I can now do it in the constructor instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is due to a typo in manifest.json on my part or not. I've found in the past that for manifest file changes to take effect you need to actually kill the Web AppBuilder process and start it over. Perhaps I forgot to this while testing this feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 21:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53186#M1501</guid>
      <dc:creator>KenLyon</dc:creator>
      <dc:date>2018-12-14T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Errors with Setting hasSettingUIFile false</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53187#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem has returned. When I start with a clean install of WAB 2.10 and add my widget to client\stemapp3d\widgets, I get an error again when trying to add that widget to a 3D app. The manifest definitely has the correct capitalization:&lt;BR /&gt;&lt;BR /&gt;"hasSettingUIFile": false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to re-add my workaround for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 20:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/errors-with-setting-hassettinguifile-false/m-p/53187#M1502</guid>
      <dc:creator>KenLyon</dc:creator>
      <dc:date>2018-12-18T20:29:37Z</dc:date>
    </item>
  </channel>
</rss>

