$.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:
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();