Skip to main content
Version: 11.2

Cols.isEmbeddedColumn()

note

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

Cols.isEmbeddedColumn()

Detects whether the first column in scope is a column of an embedded data source.

Returns a boolean.

Syntax

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

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

$.udb('EMP').cols().each((index, col) => {
if (col.isEmbeddedColumn()) {
console.log('Column %s is an embedded column', col.name());
}
});