Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Legend.sortDefinitions for more information.
N/workbook Module
Legend.sortDefinitions
Property Description:
The sort definitions of the legend.
Type:
workbook.SortDefinition[]
Module:
N/workbook Module
Parent Object:
workbook.Legend
Sibling Object Members:
Legend Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Legend.sortDefinitions
Example:
// Code Example 1
// Add additional code
//...
// View Legend.sortDefinitions in a ChartDefinition
var myWorkbook = workbook.load({
id: myWorkbookId
});
log.audit({
title: 'Legend.sortDefinitions = ',
details: myWorkbook.chartDefinitions[0].legend.sortDefinitions[0]
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159060413021.html