valueAt

Returns the value at a specified index within the sequence (0-based).

See also first, last.

Syntax

valueAt(index)
Parameter Description
index The 0-based index of the value to be retrieved from the sequence.

Examples

$('Admin.StageInstance.stage').valueAt(4)

When a view refers to several tables and a variable with same name exists in these tables, the resulting value is a sequence (see $, $val, $value method). The order of the values in this sequence is the same as the order of the tables in the view. Then valueAt can be used to pick the value of a specific table.

// variable VAR is defined in tables T1 and T2 referred by the view
// getting the value of table T2 by position
$('VAR').valueAt(1)
// is equivalent to fully qualifying the variable
$('project.T2.VAR')