Ed Leafe wrote:
On Sep 22, 2005, at 10:06 PM, Paul McNett wrote:

I have a dForm with, among other things, a couple buttons with captions "Sign In" and "Sign Out". The onHit() handlers call self.getBizobj().signIn() and self.getBizobj().signOut(), because there's logic there that really belongs at the business logic level rather than the ui level.


The problem here is that the buttons are talking to something other than the form. They should follow the Chain of Responsibility pattern and call methods of the Form. The bizobj's signIn() and signOut() methods should return result values that the form can then use to raise whatever events need to be raised.

No, the buttons are talking to the form's onHit_cmdSignIn() and onHit_cmdSignOut() methods. The bizobj's methods do return result values, and I can indeed raise the event from there. But my thinking is that this isn't something I want to code everywhere I need it, I just want it to happen automatically. If the rownum changes in the bizobj, whenever and for whatever reason, and I have controls that are bound to that bizobj, I want the current values of those controls to reflect the current values of the bizobj.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to