Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Column.groupBy for more information.
N/query Module
Column.groupBy
Property Description:
Whether the query results are grouped by this query result column.
This property is set during the execution of Query.createColumn(options) or Component.createColumn(options).
Type:
boolean (read-only)
Module:
N/query Module
Parent Object:
query.Column
Sibling Object Members:
Column Object Members
Since:
2018.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Column.groupBy
Example:
// Code Example 1
// Add additional code
//...
var myCustomerQuery = query.create({
type: query.Type.CUSTOMER
});
var myGroupByColumn = myCustomerQuery.createColumn({
fieldId: 'currency',
groupBy: true
});
var theGroupBy = myGroupByColumn.groupBy;
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510789147.html