ListColumn.addParamToURL(options)
Method Description |
Adds a URL parameter (optionally defined per row) to the list column's URL. |
Returns |
serverWidget.ListColumn object |
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 name for the parameter. |
|
string |
required |
The value for the parameter. |
|
Boolean |
optional |
If true, then the parameter value 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.addParamToURL({
param : 'index',
value : '3'
})
...
//Add additional code