Defining Filters
- Last UpdatedNov 28, 2022
- 3 minute read
Below the explorer pane, there is a possibility to define or use filters to be applied to the search. By clicking the Define Filters link, the Define Filters dialog is shown.

To define a new filter, click the New filter button and specify a name.

Below the Select Filter section, there is a Category line. If the Category checkbox is checked, the filter will include a category selection criteria. This means that when the filter is used, it will only search within the predefined category. As a default, the currently selected category in the GPART hierarchy explorer pane will be shown in the category textbox. In case the user wants to select another category, the Browse button (…) to the right can be used. If the Category checkbox is not checked, the filter will be defined as a generic filter, which can be applied to any category when used.
When filters are used, it works as follows:
-
If a filter including a category definition is used, the system will first navigate automatically to the defined category in the explorer and then apply the rest of the filter and make the search.
-
If a filter which does not include a category is used, the system will apply the filter to the category that is currently selected by the user in the explorer.
Below the category line, a table of criteria statements can be defined for the filter. To add a new statement, simply click on the Attribute field to display a dropdown list of attributes. This list contains all attributes that have been defined using the Customize function and may include attributes from referenced elements.

Next click the Operator field and select an operator. Note that some operators are only applicable to certain data types, for instance the Like operator can only be applied to text string attributes.

Finally enter a criteria value in the Value field. When using the Like operator, wildcards can be specified using the asterisk (*) character.

To add another criteria statement, simply click on the next empty line which was automatically added when the first criteria statement was defined.
In case more than one statement is used for a filter, there will be an implicit AND operator applied between statements.
Finally click OK to create the filter and close the dialog.