On Monday, 9 July 2012 14:35:41 UTC+2, Remco K wrote:
>
> Hi everyone,
>
> I'm working with SQLFORM.grid but I cant get the referenced table 
> representation to work. The only thing i get is the ID of the referenced 
> table(s):
>
> *db.py: *
> db.define_table('clients',
>                 Field('number'),
>                 Field('name')
>                 )
>
> db.define_table('sessions',
>                 Field('client_id', db.clients),
>                 Field('state')
>                 )
>
> db.sessions.client_id.requires = IS_IN_DB(db, db.clients, '%(name)s')
>
> **
>

Search the online book for 
"Record representation"  and you will get your answer.


Regards

Johann

Reply via email to