- In the TableHeader element, create an element of type Static Text and name it kwTotal.
- Click the Static Text tab.
- In the Search text field, specify the text to search for:
TotalChf|Total|Extension|AMOUNT|PRODUCTTOTAL. - To specify that the name being searched for is located on the same level as the name Designation, click the Relations tab and specify the following additional constraints. For more information, see Step 7.2.
- On the Relations tab, specify the following condition: search for an element closest to the X coordinate with value=6000.

- Click the Advanced tab.
-
Since the name of the Total column is located to the right of the name of the kwUnitPrice column (if the latter is present on the image), specify an additional condition in Advanced pre-search relations: If the kwUnitPrice element is detected, search for the image object to the right of the kwUnitPrice element. In the FlexiLayout language, this condition can be written as follows:
- To optimize the search process, specify an additional condition: Do not search for the name if the name Designation has not been detected. For more information, see Step 7.2.
- Match the FlexiLayout to make sure that the element is detected on the first page of the document.
