Portlet.addEditColumn(options)
Method Description |
Adds an Edit or Edit/View column to the portlet. |
Returns |
|
Entry Point |
|
Since |
2016.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The internal ID of the column to the left of which the Edit/View column is added. |
2016.2 |
|
string |
optional |
If set, it must contain a name of a column. The value of the column determines whether the View/Edit link is clickable for a given data row (T=clickable, F=non-clickable). |
2016.2 |
|
boolean |
optional |
If The default setting is |
2016.2 |
|
string |
optional |
The Edit/View base link. (For example: /app/common/entity/employee.nl) 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 snippet shows the syntax for this member. It is not a functional example. For a complete script example, see SuiteScript 2.x Portlet Script Type.
...
var portlet = params.portlet;
portlet.title = 'My Detailed List';
portlet.addColumn({ id: 'internalid', type: serverWidget.FieldType.TEXT, label: 'Number', align: serverWidget.LayoutJustification.LEFT
});
portlet.addColumn({ id: 'entityid', type: serverWidget.FieldType.TEXT, label: 'Name', align: serverWidget.LayoutJustification.LEFT
});
portlet.addEditColumn({ column: 'entityid', showView: true, showHrefCol: true, link: '/app/common/entity/custjob.nl', linkParam: 'internalid', linkParamName: 'id',
});
...