Hi everyone,

I'm working on web2py for the first time and i have to make a grid with 
multiple tables. That works but i want to have a link with the id of one 
table and i don't know how to send this id.
I made the following code : 

fields = (db.generalfix.IdGeneralFix, db.gene.NameGene, 
db.generalfix.PlasmidNameGeneralFix, db.generalfix.CloneIdGeneralFix, 
db.boxes.NameBoxes, db.vector.NameVector, db.status.NameStatus)
gridPlasmid = SQLFORM.grid((db.generalfix.IdGene == db.gene.IdGene)&
                        (db.generalfix.IdBoxes == db.boxes.IdBoxes)&
                        (db.generalfix.IdVector == db.vector.IdVector)&
                        (db.generalfix.IdStatus == db.status.IdStatus), 
fields, paginate = 100, links = [dict(header='', body=lambda row : 
A(db.generalfix.IdGene, _class='btn', _href=URL(c='show', f='show', vars = 
dict(id=db.generalfix.IdGene))))], user_signature = True, details = True)
    return dict(var = prenom, gridPlasmid = gridPlasmid)

I use an helper to create a link but when i click on the link, instead of 
getting the value of "db.generalfix.IdGene", i get 
show/show/id=generalfix.IdGene. 
Do someone knows how to fix this problem ? I hope i'm clear, i'm not 
english.

Thx guys ! 

-- 
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