Share this page

# TCA.vtcAddCells

Adds data in multiple columns.

If the columns specified in the argument do not exist, the columns are created, and the cell contents are set to the argument values.

Equivalent method in VuGen VTS: lrvtc_send_row1

    TCA.vtcAddCells(colNames, values, option, vtsName);

## Arguments

Name | Description
--- | ---
colNames | (string) Names of the columns, delimited by a semicolon.
values | (string) Values, delimited by a semicolon.
option | (number) Defines how the values are added. 0. Add as the same row in all columns, based on the column with the highest row count. The created row is n+1 for all columns. 1. Add as stack: Last row in every column. 2. Add as unique stack: Last row in every column, but only if the value is unique in the column.
vtsName (Optional) | (string) Alias of the VTS server.

## Return value

A promise that is fulfilled with 1 if completed successfully. Upon failure, an exception is thrown.

## Example

Copy code

    TCA.vtcAddCells("MyColumn1;MyColumn2;MyColumn3", "MyValue1;MyValue2;MyValue3", 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-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: