List.addRow(options)
Method Description |
Adds a single row to a list. |
Returns |
|
Supported Script Types |
Suitelets 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 |
Since |
---|---|---|---|---|
|
Object[] |
required |
A row that consists of either a search.Result array, or name/value pairs. Each pair should contain the value for the corresponding Column object in the list. |
2015.2 |
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 list = serverWidget.createList({
title : 'Simple List'
});
list.addRow({
row : { columnid1 : 'value1', columnid2 : 'value2' }
});
...
//Add additional code