Skip to main content
Version: 11.2

Cols.isGroupBy()

note

This article is about the isGroupBy() function of the Cols object.

Cols.isGroupBy()

Detects whether the first column in scope is part of a GROUP BY clause.

Returns a boolean.

Syntax

$.udb( *ds* ).cols( [columns] ).isGroupBy()

The required ds parameter is a data source selector.

The optional columns is a column selector. If omitted, all columns in scope are selected.

Example

let isGroupBy = $.udb('EMP').cols('DEPT_ID').isGroupBy();