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

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.delpie...@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+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.


Reply via email to