Modules
Objects/Functions
SuiteScript 2.0
{AssistantStep}.getLineCount({group: {string*}})
N/ui/serverWidget Module
AssistantStep.getLineCount()
Method Description:
Gets the number of lines on a sublist in a step.
The first line number on a sublist is 0 (not 1).
Returns:
number (the count of line items on a sublist)
if the sublist does not exist, -1 is returned.
Supported Script Types:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Governance:
None
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=AssistantStep.getLineCount(options)
Example:
// Code Example 1
//Add additional code
//...
var assistant = serverWidget.createAssistant({
title : 'Simple Assistant'
});
var assistantStep = assistant.addStep({
id : 'idname',
label : 'Sample label'
});
var sublist = assistant.addSublist({
id : 'sublistid',
type : serverWidget.SublistType.INLINEEDITOR,
label : 'Editor'
});
var numLines = assistantStep.getLineCount({
group : 'sublistid'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4334385888.html