List.addPageLink(options)
Method Description |
Adds a link to a list. |
Returns |
serverWidget.List (it return itself) |
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 |
---|---|---|---|---|
|
string |
required |
The text label for the link. |
2015.2 |
|
string |
required |
The type of page link to add. Set this value using the serverWidget.FormPageLinkType enum. |
2015.2 |
|
string |
required |
The URL for the link. |
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.addPageLink({
title : 'NetSuite',
type : serverWidget.FormPageLinkType.CROSSLINK,
url : 'http://www.netsuite.com'
});
...
//Add additional code