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

SuiteScript 2.x Suitelet Script Type

Governance

None

Module

N/ui/serverWidget Module

Since

2016.1

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.param

string

required

The name for the parameter.

options.value

string

required

The value for the parameter.

options.dynamic

Boolean

optional

If true, then the parameter value is an alias that is calculated per row.

Syntax
Important:

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 

        

Related Topics

General Notices