Modules
Objects/Functions
SuiteScript 2.0
{Record}.setMatrixSublistValue({sublistId: {string*},fieldId: {string*},column: {number*},line: {number*},value: {number | Date | string | array | boolean*}})
N/record Module
Record.setMatrixSublistValue()
Method Description:
Sets the value for the associated field in the matrix.
(standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes)
Sets a numeric value for rate and ratehighprecision fields.
Returns:
record.Record
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.setMatrixSublistValue(options)
Example:
// Code Example 1
// Add additional code.
//...
objRecord.setMatrixSublistValue({
sublistId: 'item',
fieldId: 'item',
column: 12,
line: 3,
value: true
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4600551458.html