Modules
Objects/Functions
SuiteScript 2.0
{Record}.setSublistText({sublistId: {string*},fieldId: {string*},line: {number*},text: {string*}})
N/record Module
Record.setSublistText()
Method Description:
Sets the value of a sublist field by a text representation. (standard mode only — see SuiteScript 2.0 – Standard and Dynamic Modes)
When working in dynamic mode, set a sublist field text using the following methods:
Record.selectLine(options)
Record.setCurrentSublistText(options)
Record.commitLine(options)
Sets a string value with a "%" 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.setSublistText(options)
Example:
// Code Example 1
// Add additional code.
//...
objRecord.setSublistText({
sublistId: 'item',
fieldId: 'item',
line: 3,
text: 'value'
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4273167591.html