Multiple Filters

This recipe shows a filter component using AND and OR operations.

Steps taken:

  1. Create a composite datasource (Filter-Employee.ds). Drag and drop the tabular datasource (Employee.ds) as the beginning of the flow.
  2. Add a “Filter” element following the tabular datasource. Enter the following script into the “Filter > JavaScript” tab:supervisor_id==5&&department_id==11;

In the output, only those fields with “supervisor_id” equaling to 5 and “department_id” equaling to 11 will display.

To download the necessary files for this recipe, refer to the attached ZIP file.
MultipleFilters.zip