ListColumn.setURL(options)
Method Description |
Sets the base URL for the list column. |
Returns |
|
Supported Script Types |
Suitelets For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.1 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The base URL or a column in the data source that returns the base URL for each row |
|
Boolean |
optional |
If true, then the URL is an alias that is calculated per row. |
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'
});
var listcolumn = list.addColumn({
id : 'column1',
type : serverWidget.FieldType.URL,
label : 'URL',
});
listcolumn.setURL({
url : 'http://www.netsuite.com'
})
...
//Add additional code