Standard Query Widget : Complex Selection

1672
5
10-08-2015 01:03 PM
BrianO_keefe
Regular Contributor II

Situation

I'm trying to duplicate query functionality from another web-based application we have internally, but I want this in the Query Widget on a WAB-built map. Any ideas would be GREATLY appreciated.

Desired Functionality

The web page I am trying to mimic allows users a large selection of query options. One way it does this is by offering selection choices similar to the following example:

[ Field 1 ]

  • All Choices
  • First Option
  • ... middle Options
  • Last Option
  • Null

Options

So basically, in field 1 the user can build a query to retrieve all records that are using that field by selecting :

  • All records where this field has ANY entry. If the database table that this field is in only has two records, Yes and No, then you can select all records that have Yes or all records that have No.
  • You can select any SINGLE entry, from the first to the last. This returns all records where this field holds the selected entry.
  • All records where this field is empty, not just blank but null.

Can this be done with the Query Widget? If not, is there another way to accomplish this?

0 Kudos
5 Replies
RickeyFight
MVP Regular Contributor

Brian,

Are you thinking about something like this:

ArcGIS Web Application

0 Kudos
BrianO_keefe
Regular Contributor II

Where do I find that Rickey Fite​?

0 Kudos
RickeyFight
MVP Regular Contributor

daFiter/localLayer_filter · GitHub

FYI it is configured for 1.2 but should not be hard to bring over

RobertScheitlin__GISP
MVP Esteemed Contributor

Brain,

   The eSearch unique vals option for a field can do this. Unless I am misinterpreting something.

0 Kudos
BrianO_keefe
Regular Contributor II

Robert Scheitlin​ I am testing that now. Thank you.

0 Kudos