On Thu, Feb 16, 2012 at 1:09 PM, Adrian Klaver <adrian.kla...@gmail.com>
wrote:
>
> 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.
> >

I agree the database would be the best place.  Just wanting to understand
the framework and the back end MySql is new to me as well.

> > 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
>

I haven't tried this yet.  Having the code in the verifyRecord method has
been working great so far.
Thanks for the help.

> >
> > Johnf
>
> Adrian Klaver
> adrian.kla...@gmail.com
> _______________________________________________
> 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/4f3d6275.6070...@gmail.com




--
Matt Jackson


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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/CAKsSVxnhX9LbRxvd2EKzTAsXh99-3B55KVGwrY2N8F=nkzr...@mail.gmail.com

Reply via email to