Modules
Objects/Functions
SuiteScript 2.0
{workbook}.createTableDefinition({columns: {workbook.TableColumn[]*},dataset: {dataset.Dataset*},id: {string*},name: {string*}})
N/workbook Module
workbook.createTableDefinition()
Method Description:
Creates a table. A table is a workbook component that enables you to view your dataset query results in a simple table. A table is based on an underlying dataset and can include an ID, a name, a dataset, and table columns,
Returns:
workbook.TableDefinition
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/workbook Module
Sibling Module Members:
N/workbook Module Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.createTableDefinition(options)
Example:
// Code Example 1
// Add additional code
//...
// Create a TableDefinition
var myTableDefinition = workbook.createTableDefinition({
id: '_myTableDefinition',
name: 'My Table Definition',
dataset: myDataset,
columns: [myTableColumn]
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159051867977.html