lineInit(scriptContext)
Description |
Defines the function that is executed when a line is initialized. This can be when an existing line is selected, or when a new line is added (for example, to a transaction form). 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
The scriptContext
parameter is a JavaScript object. It is automatically passed to the script entry point by NetSuite.
Parameter |
Type |
Description |
Since |
---|---|---|---|
|
The current form record. For more information about CurrentRecord object members, see CurrentRecord Object Members. |
Version 2015 Release 2 |
|
|
string |
The sublist ID name. |
Version 2015 Release 2 |
For an example of the lineInit entry point, see SuiteScript Client Script Sample.
Related Topics
- SuiteScript 2.x Client Script Entry Points and API
- fieldChanged(scriptContext)
- pageInit(scriptContext)
- postSourcing(scriptContext)
- saveRecord(scriptContext)
- sublistChanged(scriptContext)
- validateDelete(scriptContext)
- validateField(scriptContext)
- validateInsert(scriptContext)
- validateLine(scriptContext)
- localizationContextEnter(scriptContext)
- localizationContextExit(scriptContext)