On Nov 25, 2011, at 10:46 AM, Vineet Deodhar wrote:
> How can "ac" and "cat" be childs of "emp"? Because pk's of "ac" and "cat"
> are fk's in emp.
> And, in this case, need is to select a category & see the employees in that
> cat.
OK, then that explains why you are setting things up that way. FWIW,
looking at the data in either direction (see the category for a given employee,
or see the employees for a given category) is perfectly normal.
It seems that you want the flexibility to define two simultaneous
relations where Employee is the dependent table - is that correct? In this
situation, you will need two Employee bizobjs:
catBiz = Category(conn)
acctBiz = Account(conn)
empCatBiz = Employee(conn, LinkField="catid")
empAcctBiz = Employee(conn, LinkField="acid")
catBiz.addChild(empCatBiz)
acctBiz.addChild(empAcctBiz)
Is this closer to what you're looking for?
-- 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]