Need Help With Custom Widget

300
3
12-13-2019 11:52 AM
SamLee1
New Contributor

Hello I am going through the tutorial for a ListView widget and noting showing up.

It is probably the widget.js file mainly.

I have attached the file below and here is the link to the tutorial:

Create a ListView widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

0 Kudos
3 Replies
LaurynasGedminas2
Occasional Contributor

I think you are missing 'dojo/query' in your define

0 Kudos
SamLee1
New Contributor

Hello Laurynas,

Thanks. 

I get this error now:

0 Kudos
LaurynasGedminas2
Occasional Contributor

you should add your widget in samplewidgets folder:

WAB_2.14\client\stemapp\widgets\samplewidgets\Test

the add it to config to WAB_2.14\client\stemapp\sample-configs\config-demo.json file

{
"uri": "widgets/samplewidgets/Test/Widget",
"label": "Test",
"position": {
"left": 185,
"top": 45
}
}

then go to the: http://localhost:3344/webappviewer/?config=sample-configs/config-demo.json 

and open developer console is Chrome to see errors:

Look like you did not paste all the code from the demo

0 Kudos