module function · N/dataset
createColumn()
dataset.createColumn(options)
Creates a dataset column.
- Implementation
- Not started
- Design
- Open for proposals suggest how it should read
A
suitescript api
1dataset.createColumn({2 alias: /* string, optional */,3 fieldId: /* string */,4 formula: /* string */,5 join: /* dataset.Join, optional */,6 id: /* number, optional */,7 label: /* string, optional */,8 type: /* string */9});
| Parameter | Type | Required | Description |
|---|---|---|---|
| options.alias | string | optional | The alias for the column. This can be used to get the expression for the column which can be used in a workbook. Use Dataset.getExpressionFromColumn(options) to get the expression. |
| options.fieldId | string | The field ID for the column (exclusive with formula/type). | |
| options.formula | string | The formula for the column, such as '{email}' or '{total} - {tax}'. | |
| options.join | dataset.Join | optional | The joined record on which the field is present. |
| options.id | number | optional | The ID of the column. This can be used to get the corresponding expression for the column which can be used in a workbook. Use Dataset.getExpressionFromColumn(options) to get the expression. |
| options.label | string | optional | The column label to display in the UI. |
| options.type | string | The return type of the formula, such as 'INTEGER' or 'STRING'. |
B
mynt syntax
No Mynt syntax yet.
Nothing in the language compiles to dataset.createColumn(options) today. How should it read?
C
community proposals
Competing syntax for createColumn, from GitHub Discussions. Select two or more to compare them side by side.
Loading proposals from GitHub…
D
suggest an alternative
Write the Mynt you wish you could write.
A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.
- Clarity. Does it say what happens, without ceremony?
- Consistency. Does it read like
load,saveandRef[field]? - Expressiveness. Does it cover the cases people actually write?
- Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?