I have a method attached to the onDataChange event of a text field. The first thing the method does is calls databaseManager.saveData on the current record with evaluates as true. After that, I run a query that returns the value from the changed field. If I have tabbed out of the field, the value returned by the query is correct. If I exit the field any other way, like clicking on the background, the value appears to change, but the query returns the old value. Here is some of the code:
var vRecord = foundset.getRecord(foundset.getSelectedIndex());
var vSaveNoRecord = databaseManager.saveData();
var vSavevRecord = databaseManager.saveData(vRecord);
var vHasRecordChanges = databaseManager.hasRecordChanges(foundset,foundset.getSelectedIndex());
vSaveNoRecord and vSavevRecord always evaluate as true regardless if the user tabs or clicks out. vHasRecordChanges is true if the user clicks out, but false if the user tabs. Attached is a sample solution that illustrates this problem.
ODC_bug_sample.zip (3.74 KB)