On Apr 1, 2007, at 4:08 PM, Larry Bradley wrote:
> It doesn't say how to fill the choices/keys lists using the bizobj
> method.
>
> I was thinking one would do this in the "create" method of the
> combo, but
> it isn't really clear.
>
> In VFP, one would typically do such things in the "requery" method
> of the
> combo, so that changes by other users would be picked up.
Well, you get back a list of Choices/Keys from the method, so you
could do something like:
dd.Choices, dd.Keys = biz.getAvailableTypes()
Now where to put this? Typically, it would go in the form's
afterInitAll() method, which is called after the form and all its
controls have been instantiated. If you'd like it to get refreshed as
the bizobj changes, you could certainly put it in the form's
afterRequery() method.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
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/dabo-users/[EMAIL PROTECTED]