On Aug 6, 2008, at 3:32 PM, Steve Rose wrote:
> Another rookie question. Is it possible to have 2 bizobjs on the
> same form
> and have each be independent of one another? To make my question as
> generic
> as possible, say you have a form and two grids and a database
> containing two
> tables: 'cats' and 'dogs'. I want one grid datasourced to cats and
> the other
> to dogs. It seems that unless the two tables are linked and an
> addChild
> statement is in the createBizobj method, only the primary bizobj is
> active
> and the other bizobj is ignored. This happens whether I handcode or
> use the
> CD. Is that the way bizobjs are supposed to work? My only work-
> around so far
> has been to create datasets and do select statements directly on the
> tables,
> bypassing bizobjs altogether -- not what I want to do.
catbiz = form.getBizobj("cats")
dogbiz = form.getBizobj("dogs")
You can reference any bizobj on the form this way. If you have
controls for both on the form, you simply set the DataSource to either
'cats' or 'dogs', and the framework will find the right bizobj.
-- Ed Leafe
_______________________________________________
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]