Columns

Note:

The content in this help topic applies to SuiteScript 2.x.

Columns in a dataset represent the record fields that you want to include in the dataset query results. If you want to use the data in a particular field in a workbook visualization, the underlying dataset must include a column for that field.

For more information about the types of fields you can create columns for in SuiteAnalytics Workbook, see Formula Fields and Hierarchical Fields.

To create a column, use dataset.createColumn(options). This method creates a dataset.Column object. You can create a column using the following combinations of required parameters:

Optionally, you can provide the following parameters for dataset.createColumn(options):

          var myColumn = dataset.createColumn({
    alias: 'Email Column',
    fieldId: 'email',
    join: myJoin,
    id: 'customscript_myColumn',
    label: 'Email Column'
}); 

        

Related Topics

Conditions
Dataset Linking
Joins
Datasets

General Notices