Modules

filter

 

Objects/Functions

module (N/currentRecord)

SuiteScript 2.0

CurrentRecord.getCurrentSublistValue(options)

{CurrentRecord}.getCurrentSublistValue({sublistId: {string*},fieldId: {string*}})

N/currentRecord Module
CurrentRecord.getCurrentSublistValue()
Method Description: Returns the value of a sublist field on the currently selected sublist line.
Returns: number | Date | string | array | boolean
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.getCurrentSublistValue(options)

Example:

// Code Example 1
//Add additional code
//...
var sublistValue = objRecord.getCurrentSublistValue({
sublistId: 'item',
fieldId: 'item'
});
//...
//Add additional code

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