On 05/03/2013 05:08 PM, John Fabiani wrote:



-------- Original Message --------
Subject:     Re: [dabo-users] Fwd: Re: MainFormClass and save method
Date:     Fri, 03 May 2013 17:03:17 -0700
From:     John Fabiani <[email protected]>
Reply-To:     [email protected]
To:     Ed Leafe <[email protected]>



On 05/03/2013 04:46 PM, Ed Leafe wrote:
On May 3, 2013, at 6:28 PM, John Fabiani <[email protected]> wrote:

I've been using the above basic code from the start. I'm I doing it wrong?
You always need to call the superclass methods if you override them in the subclasses. To avoid that, we added before* and after* hooks that are empty by default, so you never have to worry about base class behavior.


-- Ed Leafe


Ok just to be sure - You are saying:
1.  the even if I have a save() method in my class the beforeSave() in
my class will fire.  I believe that is not happening any longer.
or
2. if I have a save() method the beforeSave() will not fire.  Not how it
worked in the past.

I'll see if I can write a little test code.

BTW is there an example of creating a simple form with a MainFormClass
that does not subclass dabo.ui.dForm.

Thanks,
Johnf



I just answered by question - the only place beforeSave() is called in the BaseForm is from the save method. My current save code I'm using should have been in the beforeSave(). But I also can see why I choose to create the save as I'm also passing special data to the method. I wonder how it worked in the past????

Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to