On 02/16/2012 11:50 AM, John Fabiani wrote: > On Thursday, February 16, 2012 10:47:25 AM Adrian Klaver wrote: > >> I generally put this in the database. I use Postgres so I use a >> combination of a default value and a UPDATE trigger. For MySQL there are >> some builtins for timestamp that do this; >> >> http://dev.mysql.com/doc/refman/5.0/en/timestamp.html >> >> One less thing to hassle with in the app, especially if you different >> apps pointing at the db. > > > Like you I generally put it this type of requirement into the database. I > also use Postgres. > > But I do wonder why the first did method did not work? If he used Form.Save() > it should have worked. I have used beforeSave() in the past (but from the > form and not the bizobj) and all worked.
Probably needs to use saveAll() instead of save() per: http://paul.dabodev.com/doc/api/dabodoc/dabo.biz.dBizobj.dBizobj.html#Methods_save save(self, startTransaction=True, saveTheChildren=True) Save any changes that have been made in the current row. If the save is successful, the saveAll() of all child bizobjs will be called as well if saveTheChildren is True (the default). saveAll(self, startTransaction=True, saveTheChildren=True) Save changes to all rows in the bizobj, and (by default) the children. Works from a form because the default is SaveAllRows = True > > Johnf Adrian Klaver [email protected] _______________________________________________ Post Messages to: [email protected] 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/[email protected]
