DS Server

Javascript: TableCell.getName Method

Method|Introduced in 28.0

Description

Gets the cell's name. Each table cell can have a name, which can be used to store any string data associated with the cell.

Syntax

<void> TableCell.getName(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the cell's name.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TableCell.getName in a practical document-editing workflow. It gets the cell's name. Each table cell can have a name, which can be used to store any string data associated with the cell.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectName(tableCell) {
    tableCell.getName(
        function(result) {
            console.log("get name result:", result);
        },
        onTxError
    );
}