Sublist.getSublistValue(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Gets a field value on a sublist.

Returns

string

Supported Script Types

SuiteScript 2.x Suitelet Script Type and SuiteScript 2.x User Event Script Type (beforeLoad(context))

Governance

None

Module

N/ui/serverWidget Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.id

string

required

The internal ID of a field.

options.line

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

SSS_MISSING_REQD_ARGUMENT

A required parameter is not passed.

YOU_CANNOT_CALL_1_METHOD_ON_SUBRECORD_FIELD_SUBLIST_2_FIELD_3

You called {1} method on subrecord field. Sublist: {2}, field: {3}.

Syntax
Important:

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 

        

Related Topics

serverWidget.Sublist
N/ui/serverWidget Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices