Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

PivotAxis.sortDefinitions

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

N/workbook Module
PivotAxis.sortDefinitions
Property Description: The sort definitions of the pivot axis.
Type: workbook.SortDefinition[]
Module: N/workbook Module
Parent Object: workbook.PivotAxis
Sibling Object Members: PivotAxis Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=PivotAxis.sortDefinitions

Example:

// Code Example 1
// Add additional code
//...
// View PivotAxis.sortDefinitions in a PivotDefinition
var myWorkbook = workbook.load({
id: myWorkbookId
});

log.audit({
title: 'PivotDefinition PivotAxis(rowAxis) sortDefinitions = ',
details: myWorkbook.pivotDefinitions[0].rowAxis.sortDefinitions
});

log.audit({
title: 'PivotDefinition PivotAxis (columnAxis) sortDefinitions = ',
details: myWorkbook.pivotDefinitions[0].columnAxis.sortDefinitions
});
//...
// Add additional code

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