Why doesn't the filter widget recognize my layer?

881
7
02-13-2019 06:25 AM
New Contributor III

I have just started to build a web app with web appbuilder. It contains only one layer with coordinates and of course a basemap. The legend shows the coordinates, and so does the attribute table. I have tried to add the Filter widget several times, so that the coordinates display different attribute table data variables, but when I try to create a new filter, it does not let me choose a layer. The drop down menu is empty and I cant add the widget.
Hopefully some one has had this issue before and knows how to solve it.

Reply
0 Kudos
7 Replies
MVP Esteemed Contributor

Laura,

   What type of layer is it? Is it part of your webmap or is the layer adding by some other widget or code?

Reply
0 Kudos
New Contributor III

I have tried different formats. I have made it a feature layer, added it as part of a web map, and added it as a new csv file. It does not work for any of them.
The first time I tried the widget it did work with the same layer, so it is very strange that it suddenly stopped working.

Reply
0 Kudos
MVP Esteemed Contributor

Laura,

   Is your webmap where you can share the id with me for testing?

Reply
0 Kudos
New Contributor II

I am having a similar issue. My web map in my WAB app has three layers that display fine on the map, in the legend, etc, but are not available as options in the filter widget. All three layers are Feature Collections that were added to the web map from My Content. There are also several Feature Services in the map that are available in the filter widget. Any help on this problem would be appreciated.

Reply
0 Kudos
New Contributor

I am also having this problem with the Filter Widget. My layers came in from web maps, and were added to the web maps as zipped shapefiles. My map layers display, show attribute table and perform in other widgets I've tried, EXCEPT the Info Summary widget. In this case, the map layers are available and I can select their fields to display, but when I open the widget it shows the feature count, and then hangs up when I try to see more. 

Have there been any solutions to this issue?

thanks,

Janet

Reply
0 Kudos
New Contributor II

I was able to solve this problem by recreating the layers - I don't recall exactly what I had previously done wrong, but what I needed to do was upload the zipped shapefiles to My Content, publish them as hosted feature layers, and then add them to the map. I think maybe I had added the layers to the map without first publishing them, which worked with some widgets but not the filter widget. 

New Contributor

Thank you so much Vanessa! I will give that a try. I figured it had something to do with how I served up the layer, & I had done just what you said - added the shapefile directly into my webmap without first publishing. Thanks!

Reply
0 Kudos