Skip to main content
Version: 11.2

$.udb(ds).clear()

note

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

$.udb(ds).clear()

Clears the contents of the data sources in the container.

Returns a UdbPromise object with the UdbDsc object as parameter.

Syntax

$.udb( *ds* ).clear()
.then( (*dsc*) => {
//...
});

The required ds parameter is a data source selector.

The parameter dsc in the resulting UdbPromise clause is the same data source container on which the function was executed.

Example

$.udb('EMP').clear();

EventApplies toOccurs when
beforecleardatasetData source objectsBefore a data set is cleared.
showdataData source objectsNew data is available for display.