>Is there a reason you can't just do db.memos.code.label?
Sorry Anthony, I can just do db.memos.code.label, thanks.

Il giorno domenica 29 novembre 2015 20:49:55 UTC+1, Anthony ha scritto:
>
> Can you provide more details regarding what you are trying to do? Is there 
> a reason you can't just do db.memos.code.label? Anyway, if a create, 
> update, or view form has been requested, the associated SQLFORM objects can 
> be found in grid.create_form, grid.update_form, and grid.view_form, 
> respectively. At that point, it is just a regular SQLFORM, so you can 
> access all the usual attributes, such as grid.view_form.custom.label.code.
>
> Anthony
>
> On Sunday, November 29, 2015 at 12:52:30 PM UTC-5, Gael Princivalle wrote:
>>
>> Hello everybody.
>>
>> Is there a way in a sqlform.grid to retrieve record field labels in a 
>> custom view?
>> Something like that:
>> grid.view_form.record.code.label
>>
>> To retrieve:
>> db.define_table('memos',
>>     Field('code', type='string', requires=IS_NOT_EMPTY(), label='*Codice*
>> '),
>>
>> Thanks, regards.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to