first

Moves to the first record in the recordset, and populates the data model with the record data.

Note: The data connection method xfa.sourceSet.DataConnection.first looks up a table and updates the table if the data has changed. It uses the hasDataChanged method to determine whether the data has changed.

Syntax

Reference_Syntax.first()

Parameters

None

Returns

Empty

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.sourceSet.dataConnectionName.first();

FormCalc

xfa.sourceSet.dataConnectionName.first()

// Ethnio survey code removed