List.addRows(options)

Method Description

Adds multiple rows to a list.

Returns

serverWidget.List

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.rows

Object[]

required

An array of rows that consist of either a search.Result array, or an array of name/value pairs. Each pair should contain the value for the corresponding Column object in the list.

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 
...
list.addRows({
    rows : [{columnid1 : 'value1', columnid2 : 'value2'},
        {columnid1 : 'value2', columnid2 : 'value3'}]
});
...
//Add additional code 

        

Related Topics

General Notices