> ## 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: Create an 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.

The **Sales** column data is not needed, but you must detect the column name to restrict the search area for the right boundary of the table.

<Steps>
  <Step title="Create the Static Text element">
    In the **TableHeader** element, create an element of type [Static Text](/flexi-capture/fls/template/static-text) and name it **kwSales**.
  </Step>

  <Step title="Enter the search text">
    Click the **Static Text** tab. In the **Search text** field, enter the text to find: `Sales`.
  </Step>

  <Step title="Add the search constraint">
    Click the **Advanced** tab. The **Sales** column name appears to the right of the **Total** column name (if the latter occurs on the document). In the **Advanced pre-search relations** field, set this [additional search constraint](/flexi-capture/fls/template/advanced-constraints): if the **kwTotal** element was detected, look for the **kwSales** element to the right of it. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

    ```text theme={null}
    If Not (TableHeader.kwTotal.IsNull) Then
    RightOf: TableHeader.kwTotal, 0 * dot;
    ```
  </Step>

  <Step title="Verify the match">
    Match the FlexiLayout with the test images and confirm that FlexiLayout Studio detects the element on every image.
  </Step>
</Steps>
