> This is my controller:
>
def new_product_input():
form = SQLFORM(db.product_input)
if form.process().accepted:
session.flash = 'Registration Saved Successfully'
redirect(URL('product_input'))
elif form.errors:
response.flash = 'Attention: errors in the form.'
return dict(form=form)
my
what is your view code? and controller code?
have you checked smartgrid ?
http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid-and-SQLFORM-smartgrid
2018-05-16 16:40 GMT+01:00 Ayron Rangel :
> I Just used {{=form}} um mundo view!! Could you
I Just used {{=form}} um mundo view!! Could you know to do that in custom??
Em qua, 16 de mai de 2018 12:19, António Ramos
escreveu:
> What code are u using in your view to display the record?
>
> 2018-05-16 15:17 GMT+01:00 Ayron Rangel :
>
>>
What code are u using in your view to display the record?
2018-05-16 15:17 GMT+01:00 Ayron Rangel :
> Guys,
>
> How can I display the list:reference like a table?
>
> Ex.: I have this in db.py: "Field('product', 'list:reference products',
> notnull=True,
Guys,
How can I display the list:reference like a table?
Ex.: I have this in db.py: "Field('product', 'list:reference products',
notnull=True, label='Products')" in my view appears, like this:
5 matches
Mail list logo