Sublist.getSublistValue(options)
Method Description |
Gets a field value on a sublist. |
Returns |
string |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The internal ID of a field. |
|
number |
required |
The line number for this field.
Note:
The first line number on a sublist is 0 (not 1). |
Errors
Error Code |
Thrown If |
---|---|
|
A required parameter is not passed. |
|
You called {1} method on subrecord field. Sublist: {2}, field: {3}. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.
//Add additional code
...
var sublistvalue = sublist.getSublistValue({
id : 'quantity',
line: 1
})
...
//Add additional code