Skip to main content
Version: 10.1

$.udb(ds).each()

note

This article is about the each() function of the DataSourceContainer object.

$.udb(ds).each()

Iterates the execution of a function over the matched data sources.

Returns the 'this' object.

Syntax

$.udb( *ds* ).each( *function*( *index*, *object* ) )

The optional ds is a data source selector.

Function is the function that is to be called for each of the matched data sources.

Index is the array index of the object for which the function is executed. This index is 0-based.

Object is the object itself. Effectively, object is the same object as returned by 'this'.

Example

$.udb(['EMP','DEPT']).each(function(index, ds){
ds.executeQuery();
});