auth.settings.extra_fields['auth_user']= [ #Field('name', requires=IS_NOT_EMPTY()), . . . Field('test1', 'reference ranking', requires=IS_IN_DB(db, 'ranking.id', '%(name)s')), . . .
On Sunday, October 7, 2012 7:37:03 AM UTC-7, Anthony wrote: > > How is your "test1" field defined? > > On Sunday, October 7, 2012 3:26:31 AM UTC-4, dave wrote: >> >> >> grid = SQLFORM.grid(query, args=[request.args(0)], >> fields=[db.auth_user.test0, >> db.auth_user.test1, >> db.auth_user.test2, >> I have defined this in my controller, the value of test1 is a reference >> to another table, how would I make web2py show the referenced value instead >> of displaying the id, something equivalent to Field('field2', 'reference >> employees', requires=IS_IN_DB(db, 'employees.id', '%(name)s')) when >> defining the table >> > --