Filters
Filters allow you to display items that meet certain criteria. For example, you can create a filter that displays only records assigned to a certain department or even a certain individual.
Filters are typically used to refine an existing list, such as a list of tasks or search results.
When filters are available for a page, a My filters menu appears near the top of the page.
Filters are also available on the Task dashboard. You can filter tasks by selecting an option from
the Filter pages list. You can manage filters by selecting the
filter options button
or clear a filter by selecting the clear filter button
.
To create a new filter
-
Do one of the following:
-
On the page where you want to add a new filter, select Menu > My filters.
-
On the Task dashboard page, select the filter options button
.
-
-
Select New.
-
Complete the following fields.
Field Action Name Enter a name for the filter. This name appears in the filter menu, so choose a name that is concise and meaningful. Description Describe the purpose of the filter. Primary Select Yes to designate the current filter as the primary. The default setting is No.
Notes:
-
When you set a filter as primary, it is applied automatically when you open the page.
-
You do not need to select a primary filter.
-
Only one filter can be primary at a time. When you assign a filter as the primary, Civic Platform resets the Primary field for all other filters to No.
-
-
In the Search by section, build your query using the options described below.
# Description A For most filters, you can leave this box blank. If you are creating a complex query that requires parentheses to group operations, you can enter an open (left) parenthesis. (The corresponding right parenthesis is entered in the second to last field.) B Choose the desired field.
The current page determines the available filter fields. For example:
-
The filter fields for the Task dashboard page include options for filtering your tasks.
-
The filter fields for Record list page include all the record fields in the record search form, plus Application-specific info, Address template, Owner template, Parcel template, and Module name.
-
The filter fields for other pages are the fields that display in the search form of each page.
Notes:-
If the Application-specific info (ASI) option is available and you select it, Civic Platform displays all the ASI groups in a pop-up window. Select an ASI group code from the ASI group code field, and then select the desired ASI field in the ASI field tree.
-
If Address template, Parcel template, or Owner template are available and you select one of them, Civic Platform displays all the active template attributes in a pop-up window. Select the desired attribute.
C Choose the desired relational operator. For a list of available operators, see Relational operators. D Specify the specific value or variable against which you want to compare the data in field B. You can manually enter a value in this field, or you can select the Variable picker button
to the right of the field and select a variable from the Variable list. For a list of variables, see Filter variables.-
If you select a user-name-related field for the filter field, Civic Platform displays three fields where you can specify the first name, middle name, and last name of a person, instead of one Value field. For a list of user-name-related pages and filter fields, see User-name-related list pages and search by fields.
-
If you select a variable for a name field, Civic Platform turns the three fields into a read-only Full name field and populates the field with the specified variable.
E For most filters, you can leave this box blank. If you are creating a complex query that requires parentheses to group operations properly, you can enter a close (right) parenthesis. (The corresponding left parenthesis is entered in first field.) F Select a logical operator in this field if you are querying additional fields (for example, you want to query by date and/or location).
- Select AND if you want the query to use both this field and the next field to find matches.
- Choose OR if you want the query to use either this field or the next field to find matches.
If you don't get the results you are expecting, try using parentheses to group operations.
-
-
To add another field to the filter, select the New field button and repeat step 4.
-
(Optional) Select the Preview SQL button to view the SQL query that will run when the filter is applied.
-
Select Submit to save the filter.
You can modify or delete filters that you created. However, you cannot modify or delete filters created by administrators.
To modify or delete a filter
-
Do one of the following:
-
On the page where you want to modify or delete a filter, select Menu > My filters.
-
On the Task dashboard page, select the filter options button
.
Note: You must have the correct permissions to modify or delete filters. If you do not have permissions, the check box next to those filters will be disabled. You can still view the filter by selecting the filter name link. -
-
Do one of the following:
-
To modify a filter:
-
Select the filter name link.
-
Make updates as needed and select Submit.
-
-
To delete a filter:
-
Select the check box next to the filter name link.
-
Select Delete.
-
-
-
On the desired page, do one of the following:
-
On the page toolbar, select the My filters list and select the filter you want to apply.
-
Select a module from the Module list and select a module-specific filter from the My filters list.
Note: Select Select from the My filters list to reset the filters to the default.
-
You can make one filter the primary filter. When you designate a filter as Primary, Civic Platform automatically applies that filter each time you open the page or tab.
-
Do one of the following:
-
On the page where you want to add a new filter, select Menu > My filters.
-
On the Task dashboard page, select the filter options button
.
-
-
Select the filter name link.
-
Do one of the following:
-
For filters you do not have permission to edit, select the Primary button, and then select Cancel to return to the My filters page.
-
For filters you have permission to edit, select Yes in the Primary field and select Submit.
-
-
Return to the list page or the Task dashboard and select the Refresh button.
Note: The page displays the results for the specific filter chosen. In addition:
- On the page list, the My filter menu displays the primary filter (if any).
- On the Task dashboard, the Filter pages menu displays the primary filter (if any).
You can use variables to build queries on the filter form. Variables are placeholders that are populated automatically by the system.
Example: If you choose the $$DEPARTMENT$$ variable, $$DEPARTMENT$$ will be replaced with the current user's department when the filter is applied.
| Variable | Description |
|---|---|
| $$DEPARTMENT$$ | The department to which the current user belongs. |
| $$GAUSER ID$$ | The logged in user's ID. |
| $$GROUP$$ | The logged in user's user group. |
| $$MODULE$$ | The name of the module for which the query is applicable. |
| $$ORGANIZATION$$ | All organizations. A Citizen Access term. |
| $$OWNORGANIZATION$$ | The logged in user's organizations. A Citizen Access term. |
| $$OWNLICENSE$$ | The logged in user's licenses. A Citizen Access term. |
| $$PUBLICUSER_EMAIL$$ | The logged in user's email. A Citizen Access term. |
| $$SERV_PROV_CODE$$ | The login user's agency code |
| $$TODAY$$ | Today's date (the workstation system date). |
| $$TODAY-n$$ |
A date in the past, calculated from today's date. Replace n with the desired number of days. For example: Enter Note: If $$TODAY-n$$ does not appear as an option in the variable list, you can enter it manually. |
| $$TODAY+n$$ | A date in the future, calculated from today's date. Replace n with the desired number of days. For example: Enter $$TODAY+7$$ in the End date field to indicate a date 7 days in the future. |
| $$USERID$$ | The ID of the user currently logged on. |
| $$USERFULLNAME$$ | The logged in user's full name. |
Relational operators define the relationship between the field you select and the value you want to compare that field against.
| Operators | Description |
|---|---|
| = | Equal to |
| != | Not equal to |
| < | Less than |
| <= | Less than or equal to |
| > | Greater than |
| >= | Greater than or equal to |
| LIKE | Begins with the field value |
| IS NULL | Empty (no field value entered) |
| IS NOT NULL | Not empty (field value entered) |
| CONTAINS | Contains the exact field value |
| List pages | Search by field |
|---|---|
| AMS asset CA list | Inspector |
| AMS PM schedule log list | Processed by staff |
| Inspection conditions of approval list | Action by user Applied by user |
| Inspection list | Inspection contact name Inspector Requester |
| My workflow task list | Action by (staff) Assigned to staff |
| Record conditions of approval list | Action by user Applied by user |
| Record inspection list | Inspection contact name Requester |
| Set conditions of approval list | Action by user Applied by user |
