Share this page

# TCA.vtcRotateCells

Retrieves the first field from all columns and moves the values to the bottom.

Equivalent method in VuGen VTS: lrvtc_rotate_row

    TCA.vtcRotateCells(option, vtsName);

## Arguments

Name | Description
--- | ---
option | (integer) Defines how the values are rotated. 0. Same row. Retrieve data from all columns and move it to the bottom for all columns, based on the column with the highest row count. The created row is n+1 for all columns. 1. Add as stack. Retrieve data from all columns, and move it to the last valid row at the bottom of each column. 2. Add as unique stack. Retrieve data from all columns, and move it to the last valid row at the bottom of each column, if the data is unique in the column.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise fulfilled with an object, which contains the first field from the columns. If there is no data in a row, a null value is retrieved.

If a column is empty, the value is an empty string. For example, `{col1:"larry",col2:""}`.

## Example

Copy code

    TCA.vtcRotateCells (0, "MyVts").then(function(result){
      TCA.done(result);
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: