List.addEditColumn(options)
Method Description |
Adds a column containing Edit or Edit/View links to a Suitelet or Portlet list. These Edit or Edit/View links appear to the left of a previously existing column. |
Returns |
serverWidget.ListColumn object |
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 |
---|---|---|---|---|
|
required |
Column that acts as a reference. The Edit/View column is added to the left of the column specified here. |
2015.2 |
|
|
Boolean |
optional |
If set to true, the URL for the link is clickable. |
2015.2 |
|
Boolean |
optional |
If |
2015.2 |
|
string |
optional |
The Edit/View base link. (For example: / The complete link is formed like this: |
2019.2 |
|
string |
optional |
The internal ID of the field in the row data where to take the parameter from. The default value is the value set in the
Tip:
In most cases, the value to use here is |
2019.2 |
|
string |
optional |
The name of the parameter. The default value is |
2019.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.addColumn({
id: 'internalid',
type: 'text',
label: 'Number'
});
list.addColumn({
id: 'entityid',
type: 'text',
label: 'Name'
});
list.addEditColumn({
column : 'entityid',
showHrefCol: true,
showView : true,
link: '/app/common/entity/employee.nl',
linkParam: 'internalid',
linkParamName: 'id',
});
...
//Add additional code