A Filtering Example

Say you want to build a filter to show all open Actions with a High or Urgent priority (open Actions where Priority = High OR Priority = Urgent).

  1. Open the Actions Business Process.
  2. If the Filter button is red, click on the Drop-down button.
  3. Click on the Filter part of the Filter button. This opens the Filter Designer.
  4. Click in the Select a Filter Field field, to open the Field Picker.
  5. In the Field Picker, select the Completion Date field and click OK. The remaining logical operator and value fields are displayed in the Criteria section.
  6. In the Select an Operator field, select IS NULL from the drop-down list. This filters for blank or empty completion date fields in the Action records.

    filter_example_1

  7. Click Add to add the criteria to the Filter Tree section.

    filter_example_2

  8. Click in the Select a Filter Field field and select the Priority field. Click OK.
  9. The Select an Operator field has a default value of EQUAL TO, which is what we want and The Select a Value Type field has a default value of Value, which is also what we want, so leave these as they are.
  10. Click on Select a Value field and select the value of High and click OK. This completes another criteria, which we can now add to the Filter Tree.

    filter_example_3

  11. Click Add. The Filter Tree now has two criteria, joined by the AND logical operator.

    filter_example_4

  12. In the Criteria section, select another Priority field and set it to be EQUAL TO Urgent and add it to the Filter Tree (or you could just add the previous criteria again and change its value in the Criteria section). The new criteria is joined by an AND logical operator.
  13. The Filter Tree now looks like this:

    filter_example_5

  14. Now change the second AND logical operator to an OR logical operator, by either double-clicking on it, or selecting it and clicking AND/OR. The logical operator changes to OR and a warning mark error_warning_red_exclamation_v6 appears beside the Filter Tree toolbar.

    filter_example_6

  15. If you now click Apply Ad Hoc to test the filter, an error message displays:

    filter_example_7

  16. To comply with the error message instructions, ensure the OR logical operator is still selected and click Increase Indent. The two criteria joined by the OR logical operator move across one level to the right, effectively simulating the placing of brackets around the "Priority Set" and ensuring this set is processed a) as a unit and b) before the "Date" criteria.

    filter_example_8

  17. Click or change the name of the filter from <ad hoc filter> to another name and click Save and Apply. The filter you have just created will now work as a correctly structured filter.

Hint

Just as in mathematics, embedded brackets are calculated before any other, the most indented (right-most) filter criteria will be processed before any other criteria, and an AND is processed before OR.

See Also

Advanced Functionality around Views

Filter a View

Custom List View