I have an SQLFORM.grid in a view to display a list of supplier contacts
When I click "Add Record", I get the error below.
Traceback
1.
2.
3.
4.
5.
6.
Traceback (most recent call last):
File "E:\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
File "E:\web2p
Hi All,
I was customizing a SQLFORM.grid startig from the code:
model:
db.define_table('aziende',
Field('ragione_sociale', requires=[IS_NOT_EMPTY(
error_message=err_mess),
IS_
I have a simple one-to-many relation like so:
db.define_table('person', Field('job'))
db.define_table('thing', Field('owner_id', 'reference person'))
And I built a grid using SQLFORM.grid like so:
grid = SQLFORM.grid((db.person.id == db.thing.owner_id),
fields=[db.thing.owner
Hello there follow web2py users,
First of all, Massimo, thanks for the great work you have done to get
web2py to this high level of functionality.
I recently started using it for a project and was faced with a challenge:
in SQLFORM.grid, when a table has many fields, the users have to scroll to
Based on this:
links = [lambda row: INPUT(_name='qty', _value='1'), lambda row: A('+',
callback=URL('cart_callback',vars=dict(id=row.id,action='add',qt=request.
vars.qty)))]
Is there a way to grab the value of the INPUT to pass them to another
function???
qt=request.vars.qty does not cut it.
Hello,
I have defined two tables related between each other, I have defined
a SQLFORM.grid with this two tables and works ok, but when I try to
add a new button with the id parameter it fails, but when I use other
field like name works correctly.
db.define_table('course',
Field('name','strin
6 matches
Mail list logo