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.
Perfectly possible, however only one of the bizobjs will be the form's
PrimaryBizobj.
Do the normal:
form.addBizobj(bizCats)
form.addBizobj(bizDogs)
Now, bizCats is the PrimaryBizobj, and form.requery(), form.next(), etc.
can be called without arguments, and will act on bizCats.
To act on bizDogs instead, do form.requery("dogs"), form.next("dogs"), etc.
Does that help?
Paul
_______________________________________________
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]