rollbackEditedRecords

Servoy Developer
Version 3.1.4-build 408
Java version 1.6.0_01-b06 (Windows XP)
Sql Server 2000 database with db identity.

I have created a form with a table view and have the onLoad to set AutoSave(false). The form has buttons to save, add, cancel…

When I add a record with

currentcontroller.newRecord(true)

Then if I cancel adding that new record

databaseManager.rollbackEditedRecords();

and make a change that would cause it to fail on another row then

save with

databaseManager.saveData();
var array = databaseManager.getFailedRecords();
for( var i = 0 ; i < array.length ; i++ )
{
//do error stuff here
}

The record that was added without data is still in the failed records array.

Is there a method to clear added records?