lineInit(scriptContext)

Description

Defines the function that is executed when an existing line is selected.

This event can behave like a pageInit event for line items in an inline editor sublist or editor sublist.

For an example, see SuiteScript Client Script Sample.

Returns

void

Since

Version 2015 Release 2

Parameters
Note:

The scriptContext parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.

Parameter

Type

Description

Since

scriptContext.currentRecord

currentRecord.CurrentRecord

The current form record.

For more information about CurrentRecord object members, see CurrentRecord Object Members.

Version 2015 Release 2

scriptContext.sublistId

string

The sublist ID name.

Version 2015 Release 2

For an example of the lineInit entry point, see SuiteScript Client Script Sample.

Related Topics

General Notices