Skip to main content
Version: 10.1

Rows.cols()

note

This article is about the cols() function of the Rows object.

Rows.cols()

Returns a collection of columns.

Syntax

*rows*.cols( *columns* )

The optional columns is a string or an array identifying one or more columns. If columns is not passed, all the columns are returned.

Example

var v = $.udb('EMP').rows('current').cols('EMP_NO');

The most common purpose of calling this function is to access a specific column value, like so:

var v = $.udb('EMP').rows('current').cols('EMP_NO').val();