You can filter report data, for example, to display the manufacturer part
of a specific manufacturer or the drawing list of a specific book.
The Filter edition dialog box lets you manage the report filter. The
lower part of the dialog box displays the condition string as it could be used in an SQL
query, in the WHERE clause.
Properties
- Name: Enter the filter name. This name must be unique
in the report.
- Description: Enter a description in all languages
managed in the software. Click + to select the
languages.
Conditions
This tab groups all elements used to create the filter. It is based on the
Condition strings that you can group. A
Condition has a database Field, an
Operator, and a Value.
When you create a condition, you must select a database field in the
Available fields list in which you can associate a value.
For example, in a Bill of material, you can create a condition on the
Manufacturer field and set
ABB as
the value. The Bill of material will display only the manufacturer parts of the ABB
manufacturer.
Condition Groups
It is important to group conditions. A condition group is evaluated first and has
priority over a simple condition.
For example:
((bom_manufacturer = 'Legrand') OR (bom_manufacturer = 'Entrelec')) AND
(bom_value1 = '160A')
In this example, the group is defined with double parentheses (( . . .
))
. The report first searches for all the Legrand
or
Entrelec
manufacturer parts, and then extracts from the results
of that search all manufacturer parts where Value1
equals
160A
.
Without a group, the example looks like this:
(bom_manufacturer = 'Legrand') OR (bom_manufacturer = 'Entrelec') AND
(bom_value1 = '160A')
The result is a list of all Legrand
or Entrelec
manufacturer parts and all manufacturer parts where Value1
equals
160A
in all other manufacturers.
Use the Up/Down arrows to manage the
condition or condition group order.