Section Object Members for Workbook in SuiteScript

Section object members allow developers to define the structure of data sections in SuiteScript, enhancing workbook functionality and data representations.

·2 min read·1 views·View Oracle Docs

The Section object in SuiteScript provides essential functionalities for managing and structuring data within a workbook. By utilizing the workbook.Section members, developers can effectively create dynamic data representations, making it easier to manipulate and visualize data in SuiteAnalytics.

What Are the Section Object Members?

The Section object comes equipped with a set of members that enable the definition and management of data dimensions, total lines, and other critical aspects. These members are categorized as follows:

Available Members

Member NameTypeReturn Type / Value TypeSupported Script TypesDescription
Section.childrenArray<workbook.CalculatedMeasureworkbook.DataMeasureworkbook.DataDimensionworkbook.DataDimensionItem
Section.totalLinestringServer scriptsSpecifies the formatting option for the total line associated with the section. Set this using the workbook.TotalLine enum.

Usage Example

Here’s a code snippet demonstrating how to create a Section object with specific children and a total line configuration:

suitescript
1// Add additional code
2...
3var mySection = workbook.createSection({
4 children: [myDataDimension, myMeasure],
5 totalLine: workbook.TotalLine.HIDDEN
6});
7...
8// Add additional code

In this example, mySection is being defined with its children set to an array of data measures and dimensions, while totalLine is configured to be hidden.

Related Concepts

A Section object is essential when creating various data visualizations, such as pivot tables or data dimensions within a workbook. It plays a pivotal role in how data is presented and interacted with.

Who This Affects

  • Developers: Integrate and utilize section objects within SuiteScript workflows.
  • Analytics Professionals: Create and configure data visualizations effectively.

Key Takeaways

  • The Section object enhances the ability to manage data within workbooks.
  • Two primary members, children and totalLine, control the structure and presentation of sections.
  • Clear understanding of these members enables better data visualizations in SuiteAnalytics.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What is the purpose of the Section object in SuiteScript?
The Section object in SuiteScript is used to manage and structure data within a workbook, enabling developers to create dynamic data representations and improve data manipulation and visualization in SuiteAnalytics.
Which members of the Section object are used to define and manage data in a workbook?
The Section object has two primary members: 'children', which represents an array of data measures and dimensions, and 'totalLine', which specifies the formatting option for the section's total line using the workbook.TotalLine enum.
Do I need to use server scripts to utilize the Section object members?
Yes, the Section object members, such as 'children' and 'totalLine', are supported in server scripts.
Can Section objects in SuiteScript be used for creating pivot tables?
Yes, Section objects are essential for creating data visualizations like pivot tables, as they play a key role in determining how data is structured and interacted with in SuiteAnalytics.
Source: Section Object Members Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteAnalytics

View all SuiteAnalytics articles →