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
(async ()=>{
let ret = await TC.vtcAddUniqueCell('MyColumn1', "unique1");
})();