Modules
Objects/Functions
SuiteScript 2.0
{Record}.getCurrentSublistIndex({sublistId: {string*}})
N/record Module
Record.getCurrentSublistIndex()
Method Description:
Returns the line number of the currently selected line. Note that line indexing begins at 0 with SuiteScript 2.0.
(dynamic mode only — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns:
number
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.getCurrentSublistIndex(options)
Example:
// Code Example 1
// Add additional code.
//...
var currIndex = objRecord.getCurrentSublistIndex({
sublistId: 'item'
});
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4273172440.html