Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=record.Column for more information.
N/record Module
record.Column
Object Description:
Encapsulates a column of a sublist on a standard or custom record.
For a complete list of this object’s properties, see Column Object Members.
This object does not return a value, it returns information about the sublist column.
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/record Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=record.Column
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.label === 'myLabel' ){
//Perform an action
}
if(objColumn.type === 'checkbox'){
//Perform an action
}
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4600354269.html