workbook.Table
Object Description |
A table object which is a view of the table. Use workbook.createTable(options) to create this object. A table object is used as a parameter in the workbook.create(options) method. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2021.2 |
Syntax
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. Also see Full scripts in the Tutorial: Creating a Workbook Using the Workbook API topic.
// Add additional code
...
//myTable is a workbook.Table object
var myTable = nWorkbook.createTable({
columns: [column1, column2], // previously defined workbook.TableColumn objects
dataset: myDataset // previously defined dataset
id: 'myTableId'
name: 'myTableName'
});
...
// Add additional code