Bosch IoT Insights

Filter Panel widget: Using query conditions

This example describes the process of using custom filters to query the widgets on your dashboard.

Besides using the Filter Panel widget to filter for devices, specific date time ranges, or text, you can define query conditions. The data on your dashboard can be filtered in the same way as in the Data Browser, the Input History, and in the Users sections.

Prerequisites

You have created a query template in the Data Explorer > Template Designer and added a parameter with the data type JSON.

Configuring the Filter Panel widget

  1. Select the Filter panel widget in the widget list.
    → The widget configuration page is displayed.

    images/confluence/download/attachments/3289844978/widget_filter_panel_configuration_2020_08_04-version-1-modificationdate-1690526673000-api-v2.png
  2. Configure the Dashboard Settings as desired.

  3. Configure the General Settings as desired.

  4. Open the Filter Types pane to configure general filters.

  5. Activate the General Filters switch.

    1. Click the Add filter drop-down list and select the filter parameter Query Condition.
      → The filter parameter is added.

  6. In the Display Name field, enter a name that will be displayed, e.g. Custom Property.

  7. In the Path field, enter a path that you want to search, e.g. payload.consumption.

  8. In the Data Type drop-down list, select a data type which matches your data type of the path, e.g. Number.

  9. Select an operator, e.g. Greater than.

  10. In the Value field, enter any value you want to search for, e.g. values greater than 1200.

  11. Click the Add Condition button to add another condition.

  12. Repeat steps 7 to 10 and add the following values:

    1. Path: payload.consumption

    2. Data Type: Number

    3. Operator: Less than

    4. Value: 5000

  13. Click the Save button.

Applying the filter

  1. In the Filter Panel widget, click the Add Filter button.

  2. In the drop-down list that opens, select the configured filter.

    images/confluence/download/attachments/3289844978/MicrosoftTeams-image-%2843%29-version-1-modificationdate-1690526673000-api-v2.png
  3. Enter the conditions as follows:
    images/confluence/download/attachments/3289844978/MicrosoftTeams-image-%2844%29-version-1-modificationdate-1690526672000-api-v2.png

    To display the database query, click the Show Query button.

  4. Click the Apply button.
    → The consumption values are filtered as defined in the query condition.