Re: [web2py] Re: Cannot label id field

2013-03-04 Thread François Delpierre
Thanks Derek and Richard. I got it to work by using: db.t_bsc.id.label=T('Service Code') After the the table definition, instead of inside of it. Thanks also for the id type. I was not aware of that type. Thanks, On Monday, 11 February 2013 20:43:24 UTC+1, Richard wrote: > > > > I just look agai

Re: [web2py] Re: Cannot label id field

2013-02-11 Thread Richard Vézina
I just look again at the model of François and I think there is a mistake, because id field should not be of type integer when you explicitly define them in your model type='id' is the proper type, so maybe he has 2 differents columns named id or his model doesn't really works. Ref.: http://web2p

[web2py] Re: Cannot label id field

2013-02-11 Thread Derek
Seems to work for me. db.define_table('customers', Field('name', 'string',length=50, requires=IS_NOT_EMPTY()), ... Field('country','string',length=3), Field('active','boolean'),format='%(name)s', singular='customer', plural='customers') db.customers.id.label=T('TEST ID') On web2py