Modules
Objects/Functions
SuiteScript 2.0
{CurrentRecord}.hasCurrentSublistSubrecord({sublistId: {string*},fieldId: {string*}})
N/currentRecord Module
CurrentRecord.hasCurrentSublistSubrecord()
Method Description:
Returns a value indicating whether the associated sublist field has a subrecord on the current line.
This method can only be used on dynamic records.
Returns:
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.hasCurrentSublistSubrecord(options)
Example:
// Code Example 1
//Add additional code
//...
var hasSubrecord = objRecord.hasCurrentSublistSubrecord({
sublistId: 'item',
fieldId: 'item'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637582063.html