Skip to content

QueryPanel: allow automatic wildcard attachment for LIKE Comparison Filters #191

Description

@justb4

The QueryPanel/QueryFilter allows to attach explicit wildcard symbols (*) in the attribute query condition forms (for LIKE Comparison Filters with Strings). It would be handy to have a config property like 'autoWildCardAttach' that, when set to true, automatically wraps the string values of LIKE Comparison Filters with a wildcard. Together with caseInsensitiveMatch (see #189) this will provide a more modern form interaction.

This is similar to GeoExt.form (https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/form.js), although with QueryPanel we may not need finegrained wildcard attachment control with STARTS_WITH, ENDS_WITH, CONTAINS, though this may be added later. For now CONTAINS-mode (prepend and append the wildcard) may be sufficient.

See an example here: http://lib.heron-mc.org/heron/latest/examples/querybuilder/
(try STATE_NAME like 'al').

This affects QueryBuilder.js and FilterBuilder.js (I don't think FilterField.js). I have a patch and can issue a pull.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions