Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-17 Thread Ayron Rangel
> 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

Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-17 Thread António Ramos
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

Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-16 Thread Ayron Rangel
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 : > >>

Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-16 Thread António Ramos
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,

[web2py] TABLE FOR LIST:REFERENCE

2018-05-16 Thread 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, label='Products')" in my view appears, like this: