Tips & Tricks - Filtering by Boolean Values
General Information
This post focuses on filtering Boolean values in tables. In the sample application, you can create tasks and mark them as completed or not completed.
The table on the home page can be filtered using a drop-down list. You can download the sample application here and then import it as usual.
Application Structure
Here you can see the input page of the sample application, which includes an input field for the task title and a checkbox for marking the task as completed or not completed.
On the "All Entries" page, you can use a drop-down list to filter the records displayed in the table view. In the properties dialog for the drop-down list, the "First entry in the list is empty" setting is enabled to create the empty entry that can be used to disable the filter.
On the "Entries" tab, select "Boolean (Logical Value)" as the data type for the stored value. The values in the drop-down list that can be selected for the filter are stored here as user-defined values.
A corresponding dependency is defined in the properties of the table to be filtered.
The filter selection list is entered here as a control. The filter is triggered by the onchange event. It compares the value entered in the "Completed" data field for each task with the value in the drop-down list using the "Equals" operator.





