mboegem wrote:you can just use databaseManager.hasNewRecords(record).
If this returns true, loop over the dataproviders in your record and use the actual values.
I found this solution, but I think it would be simpler if I could get the new values by the
getChangedData( ) method, because I already looped through the changed / edited records. Now I have to do two different things to backup the edited and new created records, but it would be possible to do this, if the method would provide the new values also for new records.
The source problem was that I want to
omit a record, but it seems that the
omitRecord( ) does not not work if another record is already changed. So I'm in the need to revert all changes to the old values, omit a record and then revert the edited records to the new values.
But if the user created a new record the new record is lost, because I get no changed data for new records.
I'm in the need to omit a record, because of
this problem.