Modules
Objects/Functions
SuiteScript 2.0
query.FieldContext.{|CONVERTED,CURRENCY_CONSOLIDATED,DISPLAY,HIERARCHY,HIERARCHY_IDENTIFIER,RAW|}
N/query Module
query.FieldContext
Enum Description:
Holds the string values for the field context to use when creating a column using Query.createColumn(options) or Component.createColumn(options).
The field context determines how field values are displayed in a column. For example, you can specify that a column should display raw data (such as internal IDs), consolidated or converted amounts (such as currency totals), or user-friendly values (such as names).
JavaScript does not include an enumeration type. The SuiteScript documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Module:
N/query Module
Sibling Module Members:
N/query Module Members
Since:
2019.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=query.FieldContext
Example:
// Code Example 1
// Add additional code
//...
var myTransactionQuery = query.create({
type: query.Type.TRANSACTION
});
var myContextColumn = myTransactionQuery.createColumn({
fieldId: 'netamount',
context: query.FieldContext.CURRENCY_CONSOLIDATED
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1552071599.html