Share this page

# TC.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: lrvtc_send_if_unique

    TC.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.

## Example

Copy code

    (async ()=>{
        let ret = await TC.vtcAddUniqueCell('MyColumn1', "unique1");
    })();

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