Re: [dabo-users] Modifying field as part of verifyRecord or beforeSave?

Author: John Fabiani

Posted: 2012-02-16 at 14:50:31

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.

Johnf

_______________________________________________

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/16214566.tOTVrf5OFk@linux-12

©2012 John Fabiani