Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

New generic filter standalone component #162

Closed
15 tasks done
knstvk opened this issue Jan 7, 2020 · 8 comments
Closed
15 tasks done

New generic filter standalone component #162

knstvk opened this issue Jan 7, 2020 · 8 comments
Assignees
Milestone

Comments

@knstvk
Copy link
Contributor

knstvk commented Jan 7, 2020

Task list

Filter actions

  • Implement FilterSaveAction, FilterSaveAsAction classes;
  • Implement FilterEditAction class;
  • Implement FilterRemoveAction class;
  • Implement FilterClearValuesAction class;
  • Implement FilterCopyAction class;
  • Implement FilterAddConditionAction class;

Behavior

  • Implement AddConditionScreen;
  • Add single condition based on PropertyFilter component;
  • Add multiple conditions based on PropertyFilter component;
  • Add condition grouping;

Filter appearance

  • ControlsLayout appearance on different screens;
  • ConditionsLayout appearance on different screens;

XML

  • Add <properties/> XML element;
  • Add <groupFilter/> XML element;
  • Add ability to define Filter in XML* (Optional);

Test projects

filter-component-ui.zip
filter-component-ui-data.zip

@alexbudarov
Copy link
Contributor

requirements from forum: ability to use with non-persistent entities
https://www.cuba-platform.ru/discuss/t/filter-i-metaclass/4193

@alexbudarov
Copy link
Contributor

"I want to validate the conditions provided by the user across the screens while he tries to save the filter"
https://www.cuba-platform.com/discuss/t/customise-save-and-save-as-action-in-filters/12119

@alexbudarov
Copy link
Contributor

alexbudarov commented Apr 17, 2020

validate filter conditions only for some specific screens
https://www.cuba-platform.com/discuss/t/cuba-gui-genericfilterchecking-enable-disable-by-filter/12130

@knstvk knstvk changed the title New generic filter design New generic filter API and backend May 22, 2020
@knstvk knstvk assigned andreysubbotin and unassigned t2-cuba Jun 25, 2020
@alexbudarov
Copy link
Contributor

reuse maximally the Filter to search with both persisted and non-persisted columns

https://www.cuba-platform.com/discuss/t/how-to-use-gui-component-filter-with-transient-fields/12979

@alexbudarov
Copy link
Contributor

alexbudarov commented Jul 8, 2020

(from cuba-feedback slack)

Hi
is it possible to sort the list of options in the table filter?
<<property name="object Type" param Where= "{E}.root.id = 8899905563"/>

By the way, we did this thing in xxx, you could specify a request that will be executed to get a list of options

Sergey K. 6 days ago
@Ilya K. is it via"==>"?

Ilya K. 6 days ago
Yeah

@knstvk knstvk assigned gorbunkov and unassigned andreysubbotin Jul 28, 2020
@alexbudarov
Copy link
Contributor

using masked field for a property input field:
https://www.cuba-platform.com/discuss/t/maskedfield-in-search-condition/13219

@gorbunkov gorbunkov changed the title New generic filter API and backend New generic filter standalone component Aug 24, 2020
@knstvk knstvk assigned glebfox and unassigned gorbunkov Oct 26, 2020
@knstvk knstvk transferred this issue from jmix-projects/jmix-old Nov 3, 2020
@knstvk knstvk assigned GlebDurygin and unassigned glebfox Nov 3, 2020
@knstvk knstvk added this to the 0.2.0 milestone Nov 3, 2020
@glebfox
Copy link
Contributor

glebfox commented Nov 9, 2020

Consider using CompositeComponent and ResponsiveGridLayout as a root container in this case.

@alexbudarov
Copy link
Contributor

Ability to sort entity option values in the filter lookupPickerField:
https://www.cuba-platform.ru/discuss/t/sortirovka-v-pole-filtra-vypadayushhij-spisok/5129/3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants