Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

workbook.Aspect

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

N/workbook Module
workbook.Aspect
Object Description: An aspect. Aspects are used when you create a series. You can create an aspect using workbook.createAspect(options).
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/workbook Module
Methods and Properties: Aspect Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.Aspect

Example:

// Code Example 1
// Add additional code
//...
// Create a basic Aspect
var myAspect = workbook.createAspect({
measure: myMeasure,
});

// Create a complete Aspect
var myAspect = workbook.createAspect({
measure: myMeasure,
type: workbook.AspectType.COLOR
});

// View a workbook.Aspect used in a ChartDefinition
var myWorkbook = workbook.load ({
id: myWorkbookId
});
var myAspect = myWorkbook.chartDefinitions[0].series[0].aspect[0];

// Note that some Aspect properties may be empty/null based on the loaded workbook
log.audit({
title: 'Aspect type = ',
details: myAspect.type
});
log.audit({
title: 'Aspect measure = ',
details: myAspect.measure
});
//...
// Add additional code

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