diff --git a/content/modules/flow-ui/pages/vc/components/genericFilter.adoc b/content/modules/flow-ui/pages/vc/components/genericFilter.adoc index 33280013..2254f3e1 100644 --- a/content/modules/flow-ui/pages/vc/components/genericFilter.adoc +++ b/content/modules/flow-ui/pages/vc/components/genericFilter.adoc @@ -42,6 +42,13 @@ include::example$onboarding/src/main/resources/com/company/onboarding/view/compo <3> The `genericFilter` component is bound to the loader through its `dataLoader` attribute. <4> xref:flow-ui:vc/components/dataGrid.adoc[`dataGrid`] displaying the data from the data container. The list of records will change as they are filtered. +[NOTE] +==== +The data loader can have its own *base condition*, set in the loader's `condition` element or programmatically via `DataLoader.setCondition()`. `genericFilter` does not replace it: the active configuration's condition is combined with the base condition as `base AND configuration`, including when you switch between configurations. + +To change the base condition, set a new `Condition` object via `DataLoader.setCondition()`. Modifying the object returned by `DataLoader.getCondition()` in place, without setting a new reference, is ignored by the filter: the change is not picked up and is overwritten the next time the filter rebuilds the loader condition (a direct `DataLoader.load()` before that rebuild reads the modified object, but the filter does not preserve it). +==== + [[quick-filter-example]] == Quick Filter Example