dc_save_pre()

In dc_save_pre() I want to set a timestamp (updatedate) if the user has changed any data.
How can i check if the data of the current edited record are changed?

function dc_save_pre(_foundset)
{
var _datachanged;
_datachanged = …

if (datachanged)
{
updatedate = new Date();
}
return _super.dc_save_pre(_foundset);
}

maybe :

databaseManager.hasRecordChanges(foundset/record, [foundset_index])
 Returns true if the specified foundset, on a specific index or in any of its records, or the specified record has changes.

Regards,

Well you already found your answer. You can also get it from the record.

var _record = foundset.getSelectedRecord()
_record.getChangedData()