$.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();
Related events
| Event | Applies to | Occurs when |
|---|---|---|
| beforecleardataset | Data source objects | Before a data set is cleared. |
| showdata | Data source objects | New data is available for display. |