CARL Source
Creating an advanced filter
Customization > Advanced filter > Creating an advanced filter

Procedure

Name of the advanced filter

List of criteria

For the operator value, the "equal" criterion allows the use of wildcards:

Adding a criterion

  1. Select the attribute in the tree structure of the elements linked to the current object with a simple click:
    • Object linked to the current object with a single link: select one of its attributes
    • Object linked to the current object with a multiple link: select one of its attributes.
    • Attribute selectable as a filter criterion. By clicking on it, you add it, together with any link information, to the right-hand window.

To display on the [Results] tab, you can directly select an object; in this way you will have a hypertext link.

However, a search criterion cannot be an object. It will refer to the code, name, or other value of the object.

 

Date type dynamic expression:

In order to enter a dynamic value of the {sysDate} - 1 {month} type, use the "Choice of a date type expression" infozone field and then select an expression. The user can then customize their choice.

Other variables are also available:

Applying an "or" link between two criteria

Standard criteria and criteria entered are always linked by an AND condition.

By selecting a node, a child condition of the AND or OR type can be added.

When a filter is created, selecting the first criterion automatically adds "Standard criteria" followed by AND.
A block of combined criteria can subsequently use only a single operator: blocks are thus generated automatically when an operator (AND, OR) is added, depending on the block and line selected.
It is important to pay attention to the cursor position, as all actions (adding operators or new criteria) are implicitly applied to the last selected node.

The example above represents the following query:

(Standard criteria) AND ('[Line 1] Payment due date' OR '[Line 1] Invoice type (invoice or credit note)') AND (createDate OR deliveryDate) AND (amountHT AND taxRate)

Switching from a tree view to a pseudo-SQL query view

Clicking this button switches from a tree view (see image above) to a pseudo-SQL query view (see image below):

 

Using the same attribute in several criteria

The same attribute of a collection can be used several times.

For example, you wish to be able to search through:

 

To do this:

  1. On the list of attributes, split the collection by clicking on the split icon .
    → The collection appears with a line number prefix.
  2. Select the attribute a first time.
    → The attribute is added to the condition tree.
  3. Repeat the operation as many times as you wish to see the criterion appear. Next, assemble the criteria under an "or" node."

 

Supplementary information

  1. Groups:
    The concept of Groups can be used, for example, to locate all work orders with a labor lasting more than 4 hours AND a labor generating a cost of more than 500 euros.

 

  1. Adding columns to the result list:
    It is possible to add a new column which will be displayed (display only) in the result list if an advanced filter is used.
    To do this, select the code for a reference (e.g. failure cause) by clicking on the corresponding blue arrow.
    The 'Res' column is automatically checked to indicate this notation.