> ## 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 15: Analyze the search constraints for column names with a TableHeader element of type Group

> Define shared search constraints for invoice column names with a TableHeader Group element and a conditional FlexiLayout language expression.

The column names appear directly below the horizontal separator you detected. To specify the search constraints common to all the column names, create a [Group](/flexi-capture/fls/template/elements-compound) element named **TableHeader**.

<Steps>
  <Step title="Create the Group element">
    Create a [Group](/flexi-capture/fls/template/elements-compound) element and name it **TableHeader**.
  </Step>

  <Step title="Add the search constraint">
    Click the **Advanced** tab. If the **hsTableHeaderTop** separator was detected on an image, the column names appear below it, but no more than 100 dots away. Otherwise, they appear in the top three fifths of the page. Set this [additional search constraint](/flexi-capture/fls/template/advanced-constraints) in the **Advanced pre-search relations** field to match that behavior. In the [FlexiLayout language](/flexi-capture/fls/code/general-code):

    ```text theme={null}
    If Not (hsTableHeaderTop.IsNull) Then
    {
    Below: hsTableHeaderTop, 0 * dot;
    Above: hsTableHeaderTop.Bottom, -100 * dot;
    } Else
    {
    Above: PageRect.Top + PageRect.Height*3/5;
    }
    ```
  </Step>
</Steps>
