Column Object Members in SuiteAnalytics for NetSuite
Column object members in SuiteAnalytics define dataset fields, enabling dynamic reporting and visualization customization.
TL;DR
The Column Object in SuiteAnalytics provides key members that encapsulate record fields in datasets, crucial for creating and managing analytics tailored for business insights.
What is the Column Object?
The Column Object encapsulates record fields within a dataset in SuiteAnalytics. Columns represent the fields utilized when constructing datasets for analysis and reporting. This functionality allows users to create complex workbooks that visualize data effectively.
Column Object Members
The following members are available for a dataset.Column object:
| Member Name | Type | Return Type / Value Type | Supported Script Types | Description |
|---|---|---|---|---|
Column.alias | string (read-only) | string | Server scripts | The alias of the column. |
Column.fieldId | string (read-only) | string | Server scripts | The ID of the record field associated with the column. |
Column.formula | string (read-only) | string | Server scripts | The formula of the column. |
Column.id | number (read-only) | number | Server scripts | The ID of the column. |
Column.join | dataset.Join (read-only) | dataset.Join | Server scripts | The join for the column. Used when the column is from a joined record. |
Column.label | string (read-only) | string | Server scripts | The label of the column. |
Column.type | string (read-only) | string | Server scripts | The return type of the formula. |
How to Create Column Objects
To implement this object effectively, use the dataset.createColumn(options) method. Here’s a brief script demonstrating how to create different types of columns:
1// Create a fieldId Column2var myFieldColumn = dataset.createColumn({3 fieldId: 'name',4 id: 75});6 7// Create a formula/type Column8var myFormulaColumn = dataset.createColumn({9 formula: '{email}',10 type: 'STRING',11 label: 'Formula'12});13 14// Create a join Column15var myJoinColumn = dataset.createColumn({16 fieldId: 'name',17 join: myJoin, // Create this using dataset.createJoin18 alias: 'my joined column'19});20 21// Load a dataset and view its Column (in the log)22var myDataset = dataset.load({23 id: 'stddataset_mydataset' // Replace with a valid ID value for your account24});25var myColumn = myDataset.Column[0];26 27log.audit({28 title: 'Column alias = ',29 details: myColumn.alias30});31log.audit({32 title: 'Column fieldId = ',33 details: myColumn.fieldId34});35log.audit({36 title: 'Column formula = ',37 details: myColumn.formula38});Who This Affects
This feature is particularly relevant for the following roles:
- Developers: Building and customizing datasets for analytics.
- Administrators: Managing data access and structure in SuiteAnalytics.
- Analysts: Creating visual representations and reports based on dataset queries.
Key Takeaways
- The Column Object provides essential properties for managing dataset fields in SuiteAnalytics.
- Each member of the Column Object is read-only and designed for server scripts.
- Datasets can utilize columns created through precise definitions using the
createColumnmethod.
Frequently Asked Questions (4)
How do you create a formula column in SuiteAnalytics?
What is the purpose of the Column.alias member in a dataset.Column object?
Can the Column Object members be modified directly in SuiteAnalytics?
What script type supports the Column Object members in SuiteAnalytics?
Was this article helpful?
More in SuiteAnalytics
- Class, Department, Location Features in NetSuite 2026.1
Class, Department, and Location features enhance financial processes in NetSuite 2026.1 for improved insights and reporting.
- New HTML Formulas in Search for NetSuite 2025.1
New HTML Formulas in Search introduced in NetSuite 2025.1 enhances security for saved searches. Starting in NetSuite 2025.1, the HTML Formulas in Search feature
- Export Pivot Tables to Excel in NetSuite 2024.2
Export Workbook pivot tables to Excel XLSX format starting with NetSuite 2024.2, enhancing data analysis and reporting capabilities.
- Consolidated Reports and SuiteQL in NetSuite 2026.1
Consolidated reports and SuiteQL enhance data access in NetSuite 2026.1. Discover key integration features.
Advertising
Reach SuiteAnalytics Professionals
Put your product in front of NetSuite experts who work with SuiteAnalytics every day.
Sponsor This Category