Użytkownik Nate Lowrie napisał: >>> the addresses tied to orders don't change. When a user edits an >>> address, if there are any changes, I need to be able to make a copy of >>> the data as a new record with the is_active field set to true and then >>> revert the old record and set it's is_active field to false. I would >>> like to define this at the bizobj level and I think it should go after >>> validation but before the save completes.
Hi. You can use beforeSave() and cloneRecord() together. Remember to restore row pointer when returning from beforeSave() method. There also could be additional problem with scanChangedRows() used with saveAll() method - you must use two phase save. Regards Jacek Kałucki _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/4d98478d.7030...@rz.onet.pl