Share this page

# TCA.vtcAddUniqueCell

Sets the last field of a column to a value, if the value does not already exist in the column.

If the column specified in the argument does not exist, the column is created, and the cell content is set to the argument value.

Equivalent method in VuGen VTS: lrvtc_send_if_unique

    TCA.vtcAddUniqueCell(colName, value, vtsName);

## Arguments

Name | Description
--- | ---
colName | (string) The name of the column.
value | (string) The value.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise that is fulfilled with a boolean: true if the value exists in the column, and false if the value does not exist. Upon failure, an exception is thrown.

## Example

Copy code

    TCA.vtcAddUniqueCell("MyColumn",1,"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: