Luv to see something triggerred when a record (in whatever column) is edited. onRecordEditStart is always triggerd when you click into a column, whether you change it or not onRecordSave is always triggered when you click out of column, whether you change it not. onDataChange works only on the selected column .
Basically I would like the same trigger used in Dataproviders when autoentering modification datetime
If there is some other trick to do this, then I missed it…
I do find it to be “unexpected” that even with autosave set to false, simply clicking in a field and then clicking on the form background will trigger an onRecordSave event… unless the test I just ran was somehow faulty, which would not surprise me given that it is now 4:00 a.m… zzzzzz…
I suppose that I look at it that ‘autosave’ is a snapshot state which can be changed at will.
Therefore, I should test for that state before doing subsequent processing.
Thus I would consider wrapping the onRecordSave method inside a test for that state as follows:
var autosave_state = databaseManager.getAutoSave()
if ( autosave_state == true )
{
Do the things you want onRecordSave as autosave is on;
}
else
{
Don't do those things until saveData() is called ;
}