Skip to main content
Version: 10.1

$.udbMeta(ds).lifeTime()

note

This article is about the lifeTime() function of the DataSourceMetaContainer object.

$.udbMeta(ds).lifeTime()

Gets the value of the Life Time property of the first data source in the container.

Returns an integer.

Syntax

$.udbMeta( *ds* ).lifeTime()

The required ds is a data source selector.

The value of the lifeTime property determines the lifecycle of the data in the data source:

ValueExplanation
-1Data stays unchanged until it leaves the scope.
0Data is refreshed each time the data source is touched.
n (where *n *> 0)Data is refreshed when an interval of n seconds has passed after the time it was last read.

Example

$.udbMeta('EMP').lifeTime();