Creating a New Filter
This section explains step by step how to create, edit and delete an identity filter for a function, and how to build the filter condition. How filters are applied to users is explained in Identity Filters Overview.
Steps to Add a Filter via the Application
1. Accessing the Function Design Screen
Click Function Designs under the Administration menu on the left.
2. Selecting the Function
- You are directed to the Functions page.
- Find the function whose records you want to restrict (for example Work Order). You can narrow the list with the modules panel on the left.
- Click the Filters option from the row actions.
3. Viewing Existing Filters
- You are directed to the Filters page of the function.
- The existing filters are listed by Name, with Edit and Delete row actions.
4. Adding a New Filter
- Click the + New button at the top right to open the Create New Filter page.
5. Filling In the Fields and Saving
- Enter the Name, select the Identities and build the condition (see the sections below).
- Click Save at the top right. The filter is saved and you return to the Filters page.
Key Fields in Filter Definition
The General Information panel of the Create New Filter (and Update Filter) page contains the following fields. Required fields are shown in bold.
| Field Name | Description |
|---|---|
| Name | The name of the filter shown in the Filters list. Required. |
| Identities | The users, roles, positions, organization units and user groups the filter applies to. Required; at least one identity must be selected. Several identities of different kinds can be selected together. |
| Filter condition | The condition that records must meet to be visible to the selected identities. It is built in the rule builder under the identities, as described below. |
Building the Condition
The condition is a tree of groups and items:
- The top level is a group. Each group has an And / Or selector that defines how its items are combined:
- And: A record must meet every item of the group.
- Or: A record must meet at least one item of the group.
- Add Item adds a condition item to the group.
- Add Group adds a nested group with its own And / Or selector, so that conditions such as A and (B or C) can be built.
- The + / - button expands or collapses a group, and the delete button removes an item or a nested group.
Each item has three parts:
- Field: Click the button next to the field box to open the Field Selection window. It shows the fields of the function's record as a tree; related records (for example the asset or site of a work order) can be expanded to reach their fields. Only fields whose type can be filtered can be selected. Selecting a field sets a default operator and clears the value.
- Operator: Chosen from the operators that are valid for the field's type (see the table below).
- Value: The input changes with the field's type. It is hidden when the operator is Empty or Not empty.
Operators by Field Type
| Field type | Operators | Value input |
|---|---|---|
| Text | Empty, Not empty, Equals, Does not equal, Contains (default), Does not contain, Starts with, Ends with, Not starts with, Not ends with | Text box |
| Whole number, Decimal | Empty, Not empty, Equals (default), Does not equal, Greater than, Less than, Greater than or equal, Less than or equal | Number box |
| Date, Date and time | Empty, Not empty, Equals (default), Does not equal, Greater than, Less than, Greater than or equal, Less than or equal | Date picker (a fixed date) |
| Money | Empty, Not empty, Equals (default), Does not equal, Greater than, Less than, Greater than or equal, Less than or equal | Amount and currency. The amount is compared; if a currency is selected, the record's currency must also match. |
| Duration | Empty, Not empty, Equals (default), Does not equal, Greater than, Less than, Greater than or equal, Less than or equal | Duration input |
| Yes/No | Equals (default), Does not equal | Switch |
| Fixed list of values (for example a priority or type) | Equals (default), Does not equal; also Empty and Not empty when the field is optional | Multiple selection from the list |
| Related record (for example Site, Asset, Created By) | Equals (default), Does not equal | Multiple selection, searched among the related records |
| Identity (user, role, position, organization unit or user group stored on the record) | Equals (default), Does not equal | Multiple identity selection |
When several values are selected:
- Equals matches records whose field equals any of the selected values.
- Does not equal matches records whose field equals none of the selected values.
Editing and Deleting a Filter
- Edit: Opens the Update Filter page with the same fields. Changes apply to the affected users' next list query after you click Save.
- Delete: Removes the filter after confirmation. Users who matched only this filter see all records their permissions allow again.
⚠️ Warning
- A user who matches several filters of the same function sees only the records that meet all of their conditions.
- A filter whose condition has no complete item is ignored, so its identities are not restricted at all.
- Filters also apply to users with administrative roles if they match the identities.
Example
The following filter shows technicians only the open work orders of the Istanbul site:
- Name: Technicians - Istanbul open work orders
- Identities: the Technician role
- Condition (And):
- Site Equals Istanbul
- State Does not equal Completed, Closed, Cancelled
The field names in this example depend on the function and on your organization's definitions; select the actual fields in the Field Selection window.