Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

workbook.FieldContext

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

N/workbook Module
workbook.FieldContext
Object Description: A field context. A field context is used when you create a table column. You can create a field context using workbook.createFieldContext(options).
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/workbook Module
Methods and Properties: FieldContext Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.FieldContext

Example:

// Code Example 1
// Add additional code
//...
// Create a basic FieldContext
var myFieldContext = workbook.createFieldContext({
name: 'My Field Context'
});

// Create a complete FieldContext
var myFieldContext = workbook.createFieldContext({
name: 'My Field Context',
parameters: {
parm1: 'ABC'
}
});
// View a workbook.FieldContext used in a TableDefinition
var myWorkbook = workbook.load ({
id: myWorkbookId
});

// Note that some FieldContext properties may be empty/null based on the loaded workbook
var myFieldContext = myWorkbook.tableDefinitions[0].columns[0].fieldContext;

log.audit({
title: 'FieldContext.name = ',
details: myFieldContext.name
});
log.audit({
title: 'FieldContext.parameters = ',
details: myFieldContext.parameters
});
//...
// Add additional code

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