Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Column.type for more information.
N/record Module
Column.type
Property Description:
Returns the column type. For more information on possible return values, see format.Type.
Type:
string (read-only)
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/record Module
Sibling Object Members:
Column Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Column.type
Example:
// Code Example 1
// Add additional code.
//...
var objRecord = record.load({
type: record.Type.SALES_ORDER,
id: 275
});
var objSublist = objRecord.getSublist({
sublistId: 'item'
});
var objColumn = objSublist.getColumn({
fieldId: 'item'
});
if(objColumn.type === 'checkbox'){
//Perform an action
}
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4600370892.html