TableColumn.datasetColumnId

Note:

The content in this help topic applies to SuiteScript 2.x.

Property Description

The ID of the dataset column from which the table column was created.

Type

number

Module

N/workbook Module

Parent Object

workbook.TableColumn

Sibling Object Members

TableColumn Object Members

Since

2020.2

Errors

Error Code

Thrown If

MUTUALLY_EXCLUSIVE_ARGUMENTS

You attempt to set this property after the TableColumn.datasetColumnAlias property has already been set.

WRONG_PARAMETER_TYPE

The value for this property is not a number.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/workbook Module Script Samples.

            // Add additional code
...
// View TableColumn.datasetColumnId in a TableDefinition
var myWorkbook = workbook.load({
    id: myWorkbookId 
});

log.audit({
    title: 'TableColumn.datasetColumnId = ',
    details: myWorkbook.tableDefinitions[0].columns[0].datasetColumnId
});
...
// Add additional code 

          

Related Topics

workbook.TableColumn
N/workbook Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices