Mike wrote:
> I have a from with two data grids contacted to two different
> datasources/bizobj
> The first is a list of banks
> The second is a list of the accounts at the banks
> The id of the bank is of course in both datasources
> I wish that the accounts grid only shows accounts for the bank on the
> row selected in the banks grid
>
> I looked for an event like "afterrowselect" or "oncurrentrow" with the
> idea of updating the account bizobj filter then calling the update
> method for the account grid but cant find an suitable event
> What is the best way to do this- what grid event should I use or is
> there a way of expressing the relation between the two business objects
> in the business objects themselves?
>
> Mike Ayers
Connect your BankBizobj and your AccountBizobj with:
def createBizobjs(self):
bankBizobj = BankBizobj(self.Connection)
self.addBizobj(bankBizobj)
accountBizobj = AccountBizobj(self.Connection)
accountBizobj.LinkField = "bank_iid" # foreign key to bank table
bankBizobj.addChild(accountBizobj) # accounts are childs of bank
self.addBizobj(accountBizobj)
The whole linking between banks and accounts is done by Dabo.
There is no need for manual event processing.
Uwe
_______________________________________________
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]