I'd like to use dojo/text! 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.
Instead, I spotted a 404 in the network traffic. The url it was attempting to load was:
http://{my machine name}.{my domain}:3344/webappbuilder/null
I ended up working around it by overriding the "postscript" function like so:
postscript: function(widget) {
widget.templateString = template;
this.inherited(arguments);
},
(where "template" was populated via use of "dojo/text!{file path}" in the "define" method.)
Is this a bug in Web AppBuilder? The equivalent setting of hasUIFile seems to work correctly. It's just the settings page that has problems.
Also, the same setting seems to work in a 2D version of the widget. It's just the 3D one that's failing.