Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.setCurrentSublistValue(options)

{Record}.setCurrentSublistValue({sublistId: {string*},fieldId: {string*},value: {number | Date | string | array | boolean*},ignoreFieldChange: {boolean}})

N/record Module
Record.setCurrentSublistValue()
Method Description: Sets the value for the field in the currently selected line. (dynamic mode only — see SuiteScript 2.0 – Standard and Dynamic Modes) When working in standard mode, set a sublist field using Record.setSublistValue(options). When you edit a sublist line with SuiteScript, it triggers an internal validation of the sublist line. If the line validation fails, the script also fails. For example, if your script edits a closed catch up period, the validation fails and prevents SuiteScript from editing the closed catch up period. 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.setCurrentSublistValue(options)

Example:

// Code Example 1
// Add additional code.
//...
objRecord.setCurrentSublistValue({
sublistId: 'item',
fieldId: 'item',
value: true,
ignoreFieldChange: true
});
//...
// Add additional code.

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