Hi,

Below you can find my code and my question

my db:

db.define_table('voyageur',
   Field <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Nom'),
   Field 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Prenom'),
   Field <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Usuel'),
..
   Field 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Scolarisation'), 
               
   Field <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Dpt')
                )
db.define_table(
    'presence',
    Field 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Nom_id',db.voyageur,writable=False),
    Field 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('present_le',type='date'),
    Field 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('terrain',requires
 = IS_IN_DB 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/IS_IN_DB>(db, 
'terrain.lieu', '%(lieu)s',zero=T 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/T>('choose one')))
)


controller:

def index():
    form = SQLFORM 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/SQLFORM>.smartgrid(db.voyageur)
    records = SQLFORM 
<https://iins-neuro.u-bordeaux.fr/examples/global/vars/SQLFORM>.smartgrid(db.voyageur,linked_tables=['voyageur','presence'],user_signature=True,maxtextlength=100,deletable=True,\
                       editable=True,create=True,showbuttontext=False, 
paginate=200,  buttons_placement = 'left',links_placement = 'left')


When i click on "presence" i 'd like to see Non (from voyageur table) instead 
of Nom_id, how can i do with represent i think

thanks in advance , regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to