Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Column.type

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

N/query Module
Column.type
Property Description: The return type of the formula used to create the query result column. This property is set during the execution of Query.createColumn(options) or Component.createColumn(options). If a formula is specified when these methods are called, this property contains the return type of the formula. If a formula is not specified, this property is null. For more information on formulas, see Formulas in Search and SQL Expressions.
Type: string (read-only)
Module: N/query Module
Parent Object: query.Column
Sibling Object Members: Column Object Members
Since: 2018.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Column.type

Example:

// Code Example 1
// Add additional code
//...
var myTransactionQuery = query.create({
type: query.Type.TRANSACTION
});

var myFormulaColumn = myTransactionQuery.createColumn({
type: query.ReturnType.CURRENCY,
formula: '{amount} * 125'
});

var theFormulaType = myFormulaColumn.type;
//...
// Add additional code

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