Dynamic filter

The Dynamic Filter component is a powerful tool that allows you to filter data from your Data Provider's data set. This is accessible in both Data View and Design View, making it highly versatile for customising your Budibase app to display relevant data effectively.

Data view

You can no longer apply filters to the base table. Instead, you must create a view to apply filters to. To help you quickly locate specific data, the Data View in your Budibase app includes a Filter button at the top right of each view. Clicking this button opens the Dynamic Filter, allowing you to apply advanced filtering criteria to data within your views for faster, more targeted access.

Dynamic filter in the data view area of your Budibase app.

Adding and Configuring Filters

To add a filter, click the Add Filter button. This will open a context menu, allowing you to customise your filters to display your data. The settings within this context menu are as follows;

  1. Initial Group Setting: Select whether to display data matching all or any of the filter groups you create. Choosing all will apply an AND condition between groups, while any will apply an OR condition.

  2. Adding Filter Groups: Click Add filter group to create multiple groups, each with its own criteria. This setup allows you to build complex filtering logic for refined results.

  3. Group-level Matching: Inside each group, choose whether to match all filters or any filters within that group, giving you control over AND/OR conditions within each specific group.

  4. Empty Filter Option: A new setting lets you decide how to display data when no filters are applied. If filters are empty, you can choose to display all rows or none, allowing for greater control over initial view settings.

Filters

In each filter, you can define the conditions that data must meet to appear in the results. Each filter has three configurable fields:

  • Column: Choose the column you wish to filter.
  • Operator: Select the appropriate operator (e.g., equals, contains)
  • The last input field is the value you search against. (An example of this in action can be seen in the gif below.)
    Gif showing the dynamic filter in action.

Design view

The Dynamic Filter component functions the same way in Design View as in Data View but offers additional flexibility when used alongside the Data Provider's component.

Quick setup process

  • Add a Card Block component and then eject it to enable customisation.
  • Add the Dynamic Filter as a child component within the Data Provider's component
  • Users can then configure the filters accordingly and pull out relevant information they require

This dynamic approach makes it easy to customise data display based on complex filtering conditions, whether working in Data View or Design View.

Speed run attempt at adding a dynamc filter

What’s Next