This method is a pre-commit test of the active record. It compares the current record data with the record data from the current data source. If the data has changed, then this method returns true.
Note:
The data connection methods xfa.sourceSet.DataConnection.first, xfa.sourceSet.DataConnection.next, xfa.sourceSet.DataConnection.previous, and xfa.sourceSet.DataConnection.last perform an implicit update if the data has changed.
Reference_Syntax.hasDataChanged()
True if the data has changed, and false if the data has not changed.
sourceSet Model

hasDataChanged