AssistantStep.getSublistValue(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Gets the current value of a sublist field (line item) in a step.

Returns

string

Supported Script Types

SuiteScript 2.x Suitelet Script Type

Governance

None

Module

N/ui/serverWidget Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.group

string

required

The internal ID of the sublist.

2015.2

options.id

string

required

The internal ID of the sublist field.

2015.2

options.line

number

required

The line number for the sublist field.

Note:

The first line number on a sublist is 0 (not 1).

2015.2

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 assistant = serverWidget.createAssistant({
    title : 'Simple Assistant'
});
var assistantStep = assistant.addStep({
    id : 'idname',
    label : 'Sample label'
});
var sublist = assistant.addSublist({
    id : 'sublistid',
    type : serverWidget.SublistType.INLINEEDITOR,
    label : 'Editor'
});
var sublistfield = sublist.addField({
    id : 'fieldid',
    type : serverWidget.FieldType.TEXT,
    label : 'Text'
});
var sublistvalue = assistantStep.getSublistValue({
    group: 'sublistid', 
    id: 'fieldid', 
    line: 0
});
...
//Add additional code 

        

Related Topics

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

General Notices