Modules
Objects/Functions
SuiteScript 2.0
{List}.addEditColumn({column: {serverWidget.ListColumn*},showHrefCol: {boolean},showView: {boolean},link: {string},linkParam: {string},linkParamName: ${7:string}})
N/ui/serverWidget Module
List.addEditColumn()
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:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Governance:
None
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=List.addEditColumn(options)
Example:
// Code Example 1
//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
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4344858957.html