> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 3. Step 19: Creating a InvertedHeader element

> Mark the right boundary of the invoice table by detecting the Sales column name with a kwSales Static Text element in FlexiLayout Studio.

Though the data from the Sales column is not needed, you have to detect its name to restrict the search area for the right boundary of the table.

To create the kwSales element:

1. In the **TableHeader** element, create an element of type [Static Text](/flexi-capture/fls/template/static-text) and name it **kwSales**.
2. Click the Static Text tab.
3. In the Search text field, enter the text to find: “**Sales**”.
4. Click the Advanced tab.
5. Since the name of the **Sales** column is located to the right of the name of the **Total** column (if the latter occurs on the document), set the following [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the Advanced pre-search relations field: If the **kwTotal** element has been detected, look for the **kwSales** element to the right of it. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):\
   `If Not (TableHeader.kwTotal.IsNull) Then`\
   `RightOf: TableHeader.kwTotal, 0 * dot;`
6. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images.
