On 25/11/2011 23:12, Ed Leafe wrote: > 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 >
Thanks Ed. With this tip, I can get started with coding. Will request for help, if required, as I proceed further with deep & complex chain involving somewhere "One Child : Many Parents". --- Vineet _______________________________________________ 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]
