[web2py] SQLFORM.grid links not working

2016-05-08 Thread Simon Carr
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

[web2py] SQLFORM.grid links bug

2015-09-21 Thread zenzeromod
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_

[web2py] SQLFORM.grid links and inner join

2014-08-28 Thread Louis Amon
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

[web2py] SQLFORM.grid, links and buttons placement specification (before other columns, after, or both)

2012-04-17 Thread nikos
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

[web2py] SQLFORM.grid Links question

2012-04-13 Thread greenpoise
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.

[web2py] SQLFORM.grid links

2012-01-16 Thread Miguel
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