Works perfectly, thanks!
On Tuesday, March 26, 2013 1:39:00 PM UTC+2, Niphlod wrote:
>
> SQLFORM.grid "takes" the labels from the underlying model, so as long as
> you specify the label before calling the grid, you're fine.
>
> db.table1.field1.label = 'whatever'
> grid = SQLFORM.grid(db.table1)
>
> should work.
>
> On Tuesday, March 26, 2013 12:07:29 PM UTC+1, Andrii Pitukh wrote:
>>
>> Can you write a code example? SQLFORM constructor has 'labels'
>> parameter, but SQLFORM.grid doesn't have it.
>>
>> On Tuesday, March 26, 2013 12:20:10 PM UTC+2, Niphlod wrote:
>>>
>>> the form has normally the label of that field ..... headers are for the
>>> table representation only
>>>
>>> On Tuesday, March 26, 2013 11:01:03 AM UTC+1, Andrii Pitukh wrote:
>>>>
>>>> I created the following form:
>>>>
>>>> SQLFORM.grid(dbm.groups_subjects, headers={'table1.field1':T('Myname1'))
>>>>
>>>> The names of columns that are set in headers are shown correctly (I see
>>>> *Myname1* as header). But when I press view or create, I see '*field1*'
>>>> as column header instead of *'Myname1'*
>>>>
>>>
--
---
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.