Modules

filter

 

Objects/Functions

module (N/currentRecord)

SuiteScript 2.0

CurrentRecord.setCurrentMatrixSublistValue(options)

{CurrentRecord}.setCurrentMatrixSublistValue({sublistId: {string*},fieldId: {string*},column: {number*},value: {number | Date | string | array | boolean*},ignoreFieldChange: {boolean},forceSyncSourcing: ${7:boolean}})

N/currentRecord Module
CurrentRecord.setCurrentMatrixSublistValue()
Method Description: Sets the value for the line currently selected in the matrix. Sets a numeric value for rate and ratehighprecision fields. This method is not available for standard records.
Returns: currentRecord.CurrentRecord
Supported Script Types: Client scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: None
Module: N/currentRecord Module
Since: 2016.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=CurrentRecord.setCurrentMatrixSublistValue(options)

Example:

// Code Example 1
//Add additional code
//...
objRecord.setCurrentMatrixSublistValue({
sublistId: 'item',
fieldId: 'item',
column: 3,
value: false,
ignoreFieldChange: true,
forceSyncSourcing: true
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637579872.html