Modules
Objects/Functions
SuiteScript 2.0
{Record}.getMatrixHeaderCount({sublistId: {string*},fieldId: {string*}})
N/record Module
Record.getMatrixHeaderCount()
Method Description:
Returns the number of columns for the specified matrix.
(standard and dynamic mode — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns:
number
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/record Module
Sibling Object Members:
Record Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Record.getMatrixHeaderCount(options)
Example:
// Code Example 1
// Add additional code.
....
var numLines = objRecord.getMatrixHeaderCount({
sublistId: 'item',
fieldId: 'item'
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4599668537.html