Too me it is not a bug, since there is a button to acces those records (read or update), I don't see why you want the id to be include in the grid, so... showid: false and rely on the grid button should be all right.
Richard On Mon, Feb 11, 2013 at 1:06 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > My bad about, I miss understand... > > Richard > > > On Mon, Feb 11, 2013 at 12:42 PM, LightDot <light...@gmail.com> wrote: > >> Field label and representation are two different things... >> >> A label is only displayed next to the field in generated forms. A visual >> aid, so to speak... Regardless of the label, the field itself would still >> be named "id", it's format or representation would stay the same. François >> simply wants the field label to be displayed as "Service Code" instead of >> "Id", which would be a default label. >> >> I must say I never tried changing the label if an id. Off the top of my >> head, I can't think of a reason why it shouldn't be possible, so, yes, >> probably a bug. >> >> Regards, >> Ales >> >> >> >> On Monday, February 11, 2013 6:01:42 PM UTC+1, Richard wrote: >> >>> I don't think you can change the representation of the id field you see >>> in smartgrid, you can hide with a switch : >>> https://groups.google.com/**forum/#!msg/web2py/** >>> UYZE3G4hW2A/oqZdGeUa3xAJ<https://groups.google.com/forum/#!msg/web2py/UYZE3G4hW2A/oqZdGeUa3xAJ> >>> >>> showid: false >>> >>> If you read the thread I show the way I change representation of id with >>> SQLTABLE(), it may be adapted for Smartgrid... >>> >>> But what you propose make no sens, because ID suppose to be unique for >>> each record and your label (representation) is the same for each record... >>> You need at least a mapping or using a URL redirection that will consider >>> the ID, so when you clic on it it bring you the read form of the other >>> table and record. >>> >>> Hope it helps >>> >>> Richard >>> >>> >>> On Sat, Feb 9, 2013 at 5:42 AM, François Delpierre < >>> francois....@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> Let's see the definition: >>>> >>>> db.define_table('t_bsc', >>>> Field('id', type='integer', label=T('Service Code')), >>>> Field('f_name', type='string', >>>> label=T('Service name'), >>>> comment=T('The name of the customer facing service as known >>>> to your customer.')), >>>> >>>> But in my smartgrid, I still see the label Id instead of 'Service Code' >>>> for the id field... >>>> Is this a bug? >>>> >>>> -- >>>> >>>> --- >>>> 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 web2py+un...@**googlegroups.com. >>>> >>>> For more options, visit >>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>> . >>>> >>>> >>>> >>> >>> -- >> >> --- >> 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 web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.