okay, figured out how to do it model:

db.Address.id.label='Address'

but any ideas on how to do it in controller?

On Thursday, May 2, 2013 3:01:23 PM UTC-7, Alex Glaros wrote:
>
> I'd like to use the "label=" in the model, or the "header=" in the 
> controller to change the title of the id field.  What would the syntax be 
> for either?
>
> def search_people_address():
>     query = (db.Party.id == db.auth_user.partyID) & 
> (db.PartyAddressIntersection.partyID==db.Party.id) & 
> (db.PartyAddressIntersection.addressID==db.Address.id), 
> *headers={db.Party.id:'Name', 
> db.Address.id:'Address'}*
>     grid = SQLFORM.grid(query, fields=[db.Party.displayName, 
> db.Address.id])
>     return dict(grid = grid)
>
> thanks,
>
> Alex
>

-- 

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