Form.addSublist(options)
Method Description |
Add a sublist to a form.
Note:
If the row count exceeds 25, sorting is not supported on static sublists created using this method. |
Returns |
A serverWidget.Sublist object |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point 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 |
---|---|---|---|---|
|
string |
required |
The internal ID name of the sublist. The internal ID must be in lowercase, contain no spaces, and include the prefix |
2015.2 |
|
string |
required |
The label for this sublist. |
2015.2 |
|
string |
optional |
The tab under which to display this sublist. If empty, the sublist is added to the main tab. |
2015.2 |
|
string |
required |
The sublist type. Use the serverWidget.SublistType enum to set the value. |
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 form = serverWidget.createForm({
title : 'Simple Form'
});
var sublist = form.addSublist({
id : 'sublistid',
type : serverWidget.SublistType.INLINEEDITOR,
label : 'Inline Editor Sublist'
});
...
//Add additional code