Share this page

# TCA.vtcGetRowCells

Returns the data in a row as a JavaScript object. The properties of the object are set to the column names.

Equivalent method in VuGen VTS: lrvtc_query_row

    TCA.vtcGetRowCells(rowIndex, vtsName);

## Arguments

Name | Description
--- | ---
rowIndex | (integer) The index number of the field. 1 is the first field in the column.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise that is fulfilled with an object, which is the field from the specified index in all columns.

If the column does not have a value in the specified index, the value is an empty string. For example, {`col1:"larry",col2:""}`

If the column specified in the argument does not exist, a null value is returned for every column.

## Example

Copy code

    TCA.vtcGetRowCells(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 Function Reference 26.1 All View Local Help Center View Online Help Center Version: