Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

workbook.Section

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.Section for more information.

N/workbook Module
workbook.Section
Object Description: A section. A section can be used when you create a category, a legend, a data dimension, a dimension selector, a pivot axis, or a pivot definition. You can create a section using workbook.createSection(options).
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/workbook Module
Methods and Properties: Section Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.Section

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 a comprehensive Section
var mySection = workbook.createSection({
children: [myMeasure],
totalLine: workbook.TotalLine.HIDDEN
});

// View a workbook.Section used in a ChartDefinition
var myWorkbook = workbook.load ({
id: myWorkbookId
});

var mySection = myWorkbook.chartDefinitions[0].legend.root;

// Note that some Section properties may be empty/null based on the loaded workbook
log.audit({
title: 'Section.children = ',
details: mySection.children[0]
});
log.audit({
title: 'Section.totalLine = ',
details: mySection.totalLine
});
//...
// Add additional code

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