ARCHIBUS Smart Client

Creating Complex Filters

The Filter Editor enables you to build complex filter criteria with multiple filter conditions combined by logical operators. You can group conditions so that the same operator is used between all the conditions in that group. To add a condition using a different operator, you add a new group. Using the Filter Editor you select from menus, or click an icon to build the filter expression.

Filter Editor showing the links used to create a condition or a group of conditions

The filter conditions you create are available until you select another task. The filter currently applied to the view is shown at the bottom of the grid. You can select the arrow at the bottom to see a list of your previous restrictions. Select a previously defined restriction from the list to reapply it to the view.

filter definition shown at the bottom of the grid with callouts showing the X to remove the filter and the check box to temporarily remove it

If you want to save a restricted view so that it is available in later sessions, add the restricted view to your Favorites. See Working with Favorites.

How the application determines the operators available in the Filter Editor

When working from the Filter Editor, you might notice that the available operators differ depending on the column you are working with. You might also notice that sometimes the editor presents different operators for the same column when working from different grid views. There are several factors that determine the available operators for a column:

How to Access this Command

You can access the Filter Editor from Smart Client grid views by:

Creating a Filter with One Group of Conditions

You can create a filter condition that has one group (that is, all the conditions are connected using the same operator). For example, you can create a filter that restricts the view to show leased areas of a certain size range in a particular building.

To create a filter with one group:

  1. Run the Filter command from the View group on the Ribbon Toolbar.
  2. On the Filter Editor, click the plus sign.

    A default condition appears for you to customize.

  3. Select the field in the default condition and a selection list of all columns shown on the screen appears.Select the field you want to restrict by.
  4. Select the operator to select an operator from the list.
  5. Select the operand value to specify the value you want to use. If the field you selected is validated or is associated with a list, the operand value field has an arrow after you click on it; click the arrow and select the value from the list.
  6. To add another condition, repeat steps 2 through 6.
  7. Click Apply.

    The view is shown using the restriction.

The following image shows the Filter Editor with a filter that uses one group with two conditions:

Filter Editor showing a filter that has one group of conditions

Creating a Filter with Two Groups of Conditions

You can create a condition that has two groups of conditions. For example, if you want to see leased areas of a certain size in either of two buildings, you would do so by creating two groups of conditions - one for each building- and connecting the groups with an Or operator.

To create a filter with more than one group:

  1. Run the Filter/Filter command from the Ribbon.
  2. On the Filter Editor, select And, and select the filter operator used to combine the two groups. For example, select Or so that records that meet either of the condition groups well be included.

    Filter Editor menu selections to add a new condition group

  3. On the Filter Editor, click the operator again, and select Add Group.

    A default condition appears for the first group of conditions.

    first group added for the filter

  4. Add conditions for the first group:
    1. Select the operator (Add) that is directly over the first group, and select the operator to be used for this group. For example, keep the selection as And to create a group that selects records that meet all the conditions you define.
    2. Select the field and a selection list of all columns shown on the screen appears. Select the field to restrict by. For example, select Building Code.
    3. Select the operator to select a different operator from the list. For example, keep the selection at equals to select records for a specific building.
    4. Select <enter a value> to select the operand value that specifies the value you want to filter by. For example, select the specific Building Code from the list to select records for a specific building.
    5. Select the plus sign next to the operator that is just above this group of conditions.

      The default condition for the second condition appears.

    6. Repeat steps 4 b through 4 d to create the second condition for this group. For example, select Area- Neg. Rentable for the field, greater than or equal to for the operator, and 3000 for the operand value to restrict to leased areas of this size in the specified building.
  5. Add the second group by clicking the operator at the top of the Filter Editor, and select Add Group.
  6. Add Conditions for the second group by following step 4 above.
  7. In the Filter Editor, click Apply.

The following image shows the Filter Editor with a filter that uses two condition groups:

Filter Editor showing a filter that has two condition groups

Clearing Restrictions

You can clear filter restrictions (restrictions set using the Filter Editor) in the following ways:

See Also

Clearing Filters (for information on clearing filter restrictions and view restrictions)