On Wed, Aug 13, 2008 at 2:30 PM, Mike Mabey <[EMAIL PROTECTED]> wrote:
> So with the dialogs I'm creating I'm trying to add controls from the data
> environment, but then I get a error saying that dDialog doesn't have a
> method "addBizobj()" when I run the app.  Have I started going in a bad
> direction?  I'm thinking now that since I need bizobj functionality in my
> dialogs, my best option will be to spawn forms instead of dialogs, unless
> there's some way to add bizobjs to a dialog.  Is this possible?

Ah, you stumbled into the great debate...Dialogs do not have bizobj
functionality.  You can argue for or against, but you can work fine
without them...You can work with this in multiple ways including
passing bizobjs in the dialogs constructor and override __init__ to
catch them, have the parent form set the bizobj references and
databinding, and passing the data to and from the control.  First is
easiest in my opinion.

Also, don't add the bizobj to the dialog.  If you store the bizobj in
the dialog as the variable myBizobj, then set the control's DataSource
to self.myBizobj...

Nate L.


_______________________________________________
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/[EMAIL PROTECTED]

Reply via email to