Get Total Column Count

This is a pre-built action in Avo Assure and comes under @Grid element, instructs Avo Assure to fetch the total column count present in grid, and save the result in the dynamic variable.

Syntax

Input Value: <header/body>(optional);<left/right>(optional);visible(optional)

Argument
Description

<header/body>

(optional)

<header/body> This part specifies the section of the table where the column count should be taken. 1. header → Count columns in the table header (header;left/right) 2. body → Count columns in the table body (body;left/right)

<left/right>

(optional)

Specifies whether to count columns only in the left-fixed or right-fixed section of the table. 1. left → Counts only the columns fixed on the left side. 2. right → Counts only the columns fixed on the right side.

visible (optional)

It is case-sensitive and provides the total column count on the current page of the specified grid or table

Input - N/A

If the input is not specified, it will provide the total column count from all the pages of the grid or table

Output Value:

Argument
Description

<Dynamic Variable> (Optional)

This variable stores the Column count of grid or table

<Dynamic Variable> (Optional)

This variable holds the results in True and False

Example 1

Retrieve and Store Column Count from a Specific Grid Section

The Get Total Column Count action takes an input value in the format (header;left) returns the number of columns in the specified section of the grid, stores the result in the {TotalColumnCount} variable, and stores the execution status in the {Status} variable.

  • True – if the count is retrieved successfully

  • False – if the action fails or an error occurs

Example 2

Get the total number of columns from the table (Input value - N/A) The Get Total Column Count action retrieves the total number of columns present in the set table. The result is stored in the {TotalColumnCount} variable, and the action status is saved in the {Status} variable with the following possible values:

  • True – if the count is retrieved successfully

  • False – if the action fails or an error occurs

Example 3

Retrieve visible Column Count from a Specific Grid Section

The Get Total Column Count action takes an input value in the format (visible) and returns the total number of columns present in the current page of the grid, stores the result in the {TotalColumnCount} variable, and stores the execution status in the {Status} variable.

  • True – if the count is retrieved successfully

  • False – if the action fails or an error occurs

Last updated

Was this helpful?