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);
}
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.