Just curious as to why you chose list:reference.
I'd just do it like this:
Field('table_ones', db.table_one ), 

On Friday, March 30, 2012 12:38:23 PM UTC-7, pjryan126 wrote:
>
> I have the following two tables:
>
> db.define_table('table_one',
>     Field('first', db.first, '%(name)s'),
>     Field('second', db.second, '%(name)s'),
>     Field('third', db.third, '%(name)s'),
>     format = '%(first)s - %(second)s Against %(third)s')
>
> db.define_table('table_two',
>     Field('fourth', db.fourth),
>     Field('fifth', db.fifth), 
>     Field('table_ones', 'list:reference table_one'),
>     Field('sixth', list:string)
>
> When I go to add a record to the db.form table in appadmin, the 
> db.form.plan_classes drop-down box populates using the id's in the 
> respective db.table_one fields (i.e., "1 - 1 Against 2", etc).
>
> How would I get the items in the db.table_two.table_ones list to appear in 
> a drop-down box using the field representations assigned in the 
> db.table_one table definition? Any help on this would be greatly 
> appreciated!
>

Reply via email to