in controller you can do :

def search_people_address():
    query = (db.Party.id == db.auth_user.partyID) & 
(db.PartyAddressIntersection.partyID==db.Party.id) & 
(db.PartyAddressIntersection.addressID==db.Address.id)
    grid = SQLFORM.grid(query, fields=[db.Party.displayName, 
db.Address.id], *headers={db.Party.id:'Name', db.Address.id:'Address'}*)
    return dict(grid = grid)

ref:
http://web2py.com/books/default/chapter/29/07#SQLFORM.grid-and-SQLFORM.smartgrid

best regards

-- 

--- 
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/groups/opt_out.


Reply via email to