TC.vtcRotateCell

Retrieves the first field from the specified column and moves the value to the bottom.

Equivalent method in VuGen: lrvtc_rotate_messages

TC.vtcRotateCell(colName, option, vtsName);

Arguments

Name Description

colName

(string) The name of the column.
option

(integer) Defines how the values are rotated.

  • 1. Add as stack. Retrieve data from column, and move it to the last valid row at the bottom of the column.

  • 2. Add as unique stack. Retrieve data from column, and move it to the last valid row at the bottom of the column, if the data is unique in the column.

vtsName

(Optional)

(string) The alias of the VTS server.

Return value

A promise that is fulfilled with a string, which is the first field of the specified column. If the column name does not exist, a null value is returned, and a new column is added to the table.

If the column is empty, the value is an empty string.

Example

Copy code
(async ()=>{
    let data = await TC.vtcRotateCell("MyColumn1", 1);
})();