Oops, sorry, for some reason I wrapped the labels dict in a list -- should
be:
formargs={'amc_master': dict(labels={'lrrflg': 'Rate Revision'}),
'amc_details': dict(labels={'qty': 'Quantity'})}
On Saturday, June 3, 2017 at 12:32:15 AM UTC-4, T.R.Rajkumar wrote:
>
> As said I did this in controller but there is no effect in either create
> or edit forms of amc_master or amc_details. I added the closing parenthesis
> for the first dict. Anything I miss?
>
> form = SQLFORM.smartgrid(db.amc_master,
> linked_tables=['amc_details'],
> user_signature=False,
> fields=dict(amc_master=list_of_fields),
> formstyle='table3cols',
> headers=headers,
> formargs={'amc_master':
> dict(labels=[{'lrrflg': 'Rate Revision'}]),
> 'amc_details': dict(labels=[{'qty':
> 'Quantity'}])}
> )
>
--
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.