Ed Leafe wrote:
On Sep 22, 2005, at 10:45 PM, Paul McNett wrote:
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.
Rownums only change in the bizobj as the result of something in the
UI. It's not like bizobjs have a mind of their own.
The most obvious is by calling next(), first(), etc. In these
methods, it is the UI that is responsible for raising the event.
Likewise, any method you write that could result in a record change
should also be responsible for raising the event. If you can find a way
to automate that in the UI, great. But it belongs in the UI.
Ok, what if it's a bizobj method that results in a bizobj rownumber
being changed? It's already automated in the UI.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev