On 2/7/10 6:38 AM, sim wrote: > On 2/7/2010 4:20 PM, Ed Leafe wrote: >> On Feb 7, 2010, at 8:54 AM, sim wrote: >> >> >>> I have a table with multiple foreign keys. >>> >>> a) How can I mark multiple fields as the LinkField? >>> >> The LinkField is set on the child, or dependent, bizobj. A child can >> only be dependent on a single parent. >> > Lets say I have a 3 tables: Products, Users and UserProducts. > UserProducts has 2 FKs , ProductID and UserID, showing which products > are used by which user. > I create 3 bizobjs, one for each table. > Should UserProducts be a child of Users or Products?
UserProducts should be defined once an instantiated twice: Once in Products and once in Users. Well, that's how I do it. In afterInit() of the parent bizobj, I: self.bizChild = MyChildBiz(self.Application.dbConnection) self.addChild(self.bizChild) 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]
