.lifeTime()

Previous Next

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

Returns an integer.

Syntax

.lifeTime()

The value of the Life Time property determines the lifecycle of the data in the data source:

Value

Explanation

-1

Data stays unchanged until it leaves the scope.

0

Data 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();