Modules
Objects/Functions
SuiteScript 2.0
{CurrentRecord}.setCurrentSublistText({sublistId: {string*},fieldId: {string*},text: {string*},ignoreFieldChange: {boolean},forceSyncSourcing: {boolean}})
N/currentRecord Module
CurrentRecord.setCurrentSublistText()
Method Description:
Sets the value for the field in the currently selected line by a text representation.
Sets a string value with a "%" for rate and ratehighprecision fields.
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.setCurrentSublistText(options)
Example:
// Code Example 1
//Add additional code
//...
objRecord.setCurrentSublistText({
sublistId: 'item',
fieldId: 'item',
text: 'value',
ignoreFieldChange: true,
forceSyncSourcing: true
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637579678.html