Portlet.addRows(options)

Method Description

Adds multiple rows to the portlet.

Returns

Object

Entry Point

render(params)

Since

2016.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.rows

search.Result[] | 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.

2016.2

Syntax

The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see SuiteScript 2.x Portlet Script Type.

          ...
params.portlet.addRows({ rows: [{ columnid1: 'value1', columnid2: 'value2' }, { columnid1: 'value2', columnid2: 'value3' }]
});
... 

        

Related Topics

Portlet Object
Portlet.addColumn(options)
Portlet.addEditColumn(options)
Portlet.addField(options)
Portlet.addLine(options)
Portlet.addRow(options)
Portlet.setSubmitButton(options)
Portlet.clientScriptFileId
Portlet.clientScriptModulePath
Portlet.html
Portlet.title

General Notices