TC.vtcGetRowCells
Returns the data in a row as a JavaScript object. The properties of the object are set to the column names.
If the column specified in the argument does not exist, a null value is returned for every column.
Equivalent method in VuGen: lrvtc_query_row
TC.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
(async ()=>{
let datas = await TC.vtcGetRowCells(1);
})();