To find Line number of currently selected line

CurrentRecord.getCurrentSublistIndex(options)

Returns the line number of the currently selected line.

Parameter Type Required / Optional Description

options.sublistId string (required) The internal ID of the sublist. This value is displayed in the Records Browser.

Errors

Error Code Thrown If

SSS_MISSING_REQD_ARGUMENT A required argument is missing or undefined.

//Add additional code
...
let currIndex = objRecord.getCurrentSublistIndex({
    sublistId: 'item'
});
...
//Add additional code

Leave a comment

Your email address will not be published. Required fields are marked *