getLineNum()
The getLineNum() function (client-side) returns the transaction line number of the main configured item opened in Edit mode.
Syntax
Use this syntax for the getLineNum() function:
getLineNum();
Return Value
The getLineNum() function returns a number or null if the configuration only outputs additional items to the transaction.
Parameters
The getLineNum() function doesn't require any parameters.
Examples
The following examples show how to use the getLineNum() function.
Retrieving the Configuration Record Line Number
This example retrieves the line number associated with the configuration record by using getLineNum() without parameters.
const line = getLineNum();
console.log('Current line:', line);
The resulting output may look like this:
Current line: 1