#1912 closed enhancement (fixed)
Add more filter rows in list pages
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.5 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
The current filtering is always using AND logic between each column filter. It would be nice to be able search using OR as well, or with a combination.
This could be implemented by allowing extra filter rows on the list pages and using OR when combining the rows and AND when combining the columns.
New functionality is needed in both the core and web layer but most changes are probably required in the web layer.
Change History (15)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
comment:3 by , 10 years ago
(In [6699]) References #1912: Add more filter rows in list pages
Fixes a problem with using non-unique id for the 'Add filter row' icon when used on pages that has multiple lists. This caused the icon to not work or add rows to the incorrect list.
The add/remove icons are now based on class names instead which means we can target each icon within the table context it is defined in.
comment:4 by , 10 years ago
comment:5 by , 10 years ago
comment:6 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:7 by , 10 years ago
comment:8 by , 10 years ago
comment:9 by , 10 years ago
comment:10 by , 10 years ago
comment:11 by , 10 years ago
comment:12 by , 10 years ago
comment:13 by , 10 years ago
comment:14 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [6697]) References #1912: Add more filter rows in list pages
Added support for this in the core. Implemented by storing context filters in the database as
<property>[index]
where index is the row number for additional rows (1 to n). Properties without an index are on the first filter row (=0).ItemContext
has been extended with methods for accessing filter on other filter rows. TheItemContext.configureQuery()
method has been updated to use OR logic between filters on different rows (so far only theEntityQuery
variant).On the web client side, taglibs
Table
,ColumnDef
andPropertyFilter
has been extended with support for generating more than one filter row (the notification about hidden columns with filters is not yet always correct).To bridge it all together the
Base
utility class has been extended with support for managing the filter rows, shich includes adding and removing rows.So far, only the raw bioassays list page has been updated with support for multiple filter rows.