Skip to main content
Version: 11.2

$.udb(ds).isOnCurrentPage()

note

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

$.udb(ds).isOnCurrentPage()

Detects whether the first data source in the container belongs to the page that is currently the active page in its frame.

Returns a boolean.

Syntax

$.udb( *ds* ).isOnCurrentPage()

The required ds is a data source selector.

Example

// only refresh child data sources that are actually shown on the page
// that is currently active, and skip the ones on other (embedded) pages
$.udb('DEPT').children().forEach((dsChild) => {
if (dsChild.isOnCurrentPage()) {
dsChild.refresh();
}
});