I'm not sure, but what's the use case? SQLFORM.factory is for creating forms, not database tables. What would be the result of any linking?
On Tuesday, November 29, 2011 1:14:18 PM UTC-5, Constantine Vasil wrote: > > ========================================================= > Instead, though, you might want to explicitly link the two tables: > > db.define_table('t_ab_distribution', > Field('f_distributionname'), > format='%(f_distributionname)') > > db.define_table('t_ab_recipient', > Field('f_distribution', db.t_ab_distribution)) > > That will automatically add an IS_IN_DB validator to f_distribution, and > it will display the f_distributionname in the list due to the > format='%(f_distributionname)'. > ========================================================= > > Can you do the same with SQLFORM.factory? > > I consider that SQLFORM.factory creates a virtual table. > > > >