> ## 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 4. Step 7.7: Name of Sales column, kwSales element

> Step 7.7 of FlexiLayout Studio Sample 4: create a kwSales Static Text element to find the Sales column name and bound the invoice table on the right.

Even though the Sales column itself is not needed, it can be used to limit the table on the right.

To create a kwSales element:

1. In the **TableHeader** element, create an element of type Static Text and name it **kwSales**.
2. Click the Static Text tab.
3. In the Search text field, specify the text to search for: **Sales**.
4. 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](/flexi-capture/fls/tutorial4/4step7-2).
5. Click the Advanced tab.
6. Since the name of the **Sales** column is located to the right of the **kwTotal** column (if the latter is present on the image), specify an additional condition in Advanced pre-search relations:\
   If the **kwTotal** element is detected, search for the image object to the right of the **kwTotal** element. In the [FlexiLayout language](/flexi-capture/fls/code/general-code), this condition can be written as follows:

   ```text theme={null}
   If Not (TableHeader.kwTotal.IsNull) Then
   RightOf: TableHeader.kwTotal, 0 * dot;
   ```
7. 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](/flexi-capture/fls/tutorial4/4step7-2).
8. Match the FlexiLayout to make sure that the element is detected on the first page of the document.
