I have followed many of the questions regarding the errors in the listview sample code and have copy and pasted code from Robert's entries and am still unable to get the sample to work. When I run Web AppBuilder and add the custom widget, I get an error that says: "Create widget setting page error: widgets/ListView/Widget". This error message has an "OK" button which I click and the ListView icon shows up in the placeholder. When I click the icon, I get an error that says: "Create widget error: widgets/ListView/Widget" also with an "OK" button.
I am using Web AppBuilder 2.12 and running in chrome. When viewing the network traffic in developer tools in chrome, I see an error that says "lang is not defined". Is there something I need to install for Web AppBuilder to work with this sample?
I was successful with the "Create a custom in-panel widget" sample code but it does not use lang.
Solved! Go to Solution.
Now that I think about it, my workstation is probably ok since I can use other widgets in my app. Not really sure what I am doing wrong with the ListView. I suppose I should just move on to another sample widget.
Probably just something in that particular app. Make sure that the stemapp widget folder contains the same code as you send me and then create a new app.
I found that the widget was placed in a different location... WebAppBuilderForArcGIS/server/apps/2/widgets. I deleted it from this location and restarted WebAppBuilder and it mostly works now!
I did not realize that the app was retaining the widget in a different location. Makes sense now.
I am still working my way up the learning curve!