Hi Everyone,
i have some issues with getting the custom in-panel widget running. I followed the steps of Create a custom in-panel widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers and also create a custom in panel widget problem and Question about creating custom in-panel widget. but the Widget is still not running correctly.
I can add it to a map, but as soon as I try to open it I get the following message:
"create widget error:
widgets/MyWidget/Widget"
Does anyone have some ideas about how to solve the problem?
Thanks a lot!
I just build the Widget with WAB 1.1 and everything works fine until I copy the MyWidget folder from samplewidgets to widgets.
My Firefox console returns:
Error: dijit._WidgetsInTemplateMixin template:nls.timeout
Stack-Trace:
https://js.arcgis.com/3.13/init.js:285:321
https://js.arcgis.com/3.13/init.js:177:294
https://js.arcgis.com/3.13/init.js:911:433
.cache["dojo/string"]/</l.substitute@https://js.arcgis.com/3.13/init.js:911:298
.cache["dijit/_TemplatedMixin"]/</d<._stringRepl@https://js.arcgis.com/3.13/init.js:285:204
.cache["dijit/_TemplatedMixin"]/</d<.buildRendering@https://js.arcgis.com/3.13/init.js:286:317
.cache["dijit/_WidgetBase"]/</f<.create@https://js.arcgis.com/3.13/init.js:1123:120
.cache["dijit/_WidgetBase"]/</f<.postscript@https://js.arcgis.com/3.13/init.js:1122:94
https://js.arcgis.com/3.13/init.js:108:190
https://localhost:3344/webappbuilder/stemapp/jimu.js/WidgetManager.js:302:33
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.13/init.js:199:431
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.13/init.js:199:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.13/init.js:201:441
https://localhost:3344/webappbuilder/stemapp/jimu.js/WidgetManager.js:354:13
https://js.arcgis.com/3.13/init.js:815:54
https://localhost:3344/webappbuilder/stemapp/jimu.js/WidgetManager.js:847:17
https://localhost:3344/webappbuilder/stemapp/jimu.js/WidgetManager.js:638:13
ha@https://js.arcgis.com/3.13/init.js:32:471
https://js.arcgis.com/3.13/init.js:33:202
ia@https://js.arcgis.com/3.13/init.js:33:89
fa@https://js.arcgis.com/3.13/init.js:33:144
pa/g@https://js.arcgis.com/3.13/init.js:35:380
https://js.arcgis.com/3.13/init.js:40:98
" init.js:209:9
I'd be glad if someone could help.
Hi Robert,
I have a string.js file but it only says:
define({
root:({
})
});
So I guess that's the root of the problem. Can you tell me what I need to write to that file?
Veronika,
So it looks like the first error is an issue with your locale file (nls\strings.js) do you have one what is in it?
My console returns the following:
TypeError: Für die Eigenschaft "$locale" kann kein Wert festgelegt werden: Das Objekt ist Null oder undefiniert
PROTOKOLL: panel [_5_panel] created.
PROTOKOLL: create [widgets/MyWidget/Widget] error:undefined
TypeError: Das Objekt unterstützt diese Aktion nicht.
The first error occurs when assigning the widget to Header-Controller, the second appears when trying to open the widget.
There are a couple of reasons you would get this error. Can you look at your browsers developer tools and see what the console says?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.