Ed Leafe wrote:
Now all that's left is to tell the parent that it has a child. The
appwiz code is a little too terse for my taste, so this is what I
would write in the form's afterInit() method:
# Create the bizobjs
bizCust = app.biz.CustomerBizobj(app.dbConnection)
bizOrders = app.biz.OrdersBizobj(app.dbConnection)
# Add them to the form. The first will automatically
# be the form's PrimaryBizobj.
self.addBizobj(bizCust)
self.addBizobj(bizOrders)
# This is how you relate bizobjs
bizCust.addChild(bizOrders)
That's it! Now when you navigate to a record in Customer, the Orders
bizobj will contain all the related Orders for that Customer.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
I suppose you mean the afterInit method of the FrmCustomer class in the
FrmCustomer.py module?
This doesn't work for me.
Miguel
Fomos ainda mais longe!
ADSL até 24 Mb + Telefone livre de assinatura por apenas 34,9/mês
Acabe de vez com os 15 da assinatura telefónica!
Saiba mais em http://acesso.clix.pt/
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users