Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

workbook.createSection(options)

{workbook}.createSection({children: {Array*},totalLine: {workbook.TotalLine}})

N/workbook Module
workbook.createSection()
Method Description: Creates a section, which includes children and a total line.
Returns: workbook.Section
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.createSection(options)

Example:

// Code Example 1
// Add additional code
//...
// Create a basic Section with DataDimension children
var mySection = workbook.createSection({
children: [myDataDimension]
});

// Create a basic Section with Measure children
var mySection = workbook.createSection({
children: [myMeasure]
});

// Create a basic Section with Section children
var mySection = workbook.createSection({
children: [mySectionChildren] // create this using a separate call to workbook.createSection
});

// Create a comprehensive Section
var mySection = workbook.createSection({
children: [myMeasure],
totalLine: workbook.TotalLine.HIDDEN
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159051755688.html