Filter / Query Widget - need to populate dropdown menus for layers with no domains

1354
0
09-23-2016 12:05 PM
Status: Open
by Anonymous User
Not applicable

I love the new widgets in WAB 2.1!   

 

For layers with domains Filter and Query work perfect, with a dropdown menu for users to select values from an attribute.

 

However, for layers without domains (most of ours)... they have to know the values and how they are formatted. This will be a stopping point for users. However, the solution would be to let the developer instruct the Filter widget to populate the menu with all values, or with a representative sample of values, or maybe the first 10 values, or first 'x' amount of values.  So the user knows the "format" of the data and values, to input into the Contains entry, you know? 

Like this: Query Builder - Populate representative values  (click Tools in upper right, then Query Builder)

 

For example, I have a layer of shoreline types.   The user will need to know to type "Sandy Bluff" or "Marsh Scarp" etc.  AIWW Character - Server/AIWW 

For the site we are updating - Georgia Coastal Hazards Portal 1.0 

  

However, the real end users, the public, will not know these terms. Or how to format them.

:::::::UPDATE:::::::::: 9/26 ---  using Unique Values and setting it to "IS" operator seems to populate the menu with all unique values.  This is perfect. For now.  I imagine if there were thousands of unique values that might bog down the browser and make the menu long and unwieldy. Therefore some method of selecting 'representative' values or the first "x" values could still be helpful.