record.Column
Object Description |
Encapsulates a column of a sublist on a standard or custom record. This object does not return a value, it returns information about the sublist column. |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2015.2 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/record Module Script Samples.
// 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