[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
Just tried that, but it still returns the Id .. 1. it just returns a ticket if On Sep 15, 12:57 am, Martín Mulone wrote: > Perhaps you want to use columns instead of fields. > > replace your controller with this: > > def index(): >     columns = ['dog.name', 'dog.owner'] >     table = SQLFORM.gr

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Bruno Rocha
On Wed, Sep 14, 2011 at 1:11 PM, roberto...@gmail.com wrote: > ** Hi martín, And with powergrid? PowerGrid is a bit different, because its data is based in JSON callback. My initial view was that users may code their own JSON callback to work with grid. Bit it is in my TODO to enable represent

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread roberto...@gmail.com
Hi martín, And with powergrid? -- Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad "Martín Mulone" escribió: Perhaps you want to use columns instead of fields. replace your controller with this: def index(): columns = ['dog.name', 'dog.owner'] table = SQLFORM.grid(db.do

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Martín Mulone
Perhaps you want to use columns instead of fields. replace your controller with this: def index(): columns = ['dog.name', 'dog.owner'] table = SQLFORM.grid(db.dog, columns=columns) return dict(table=table) columns affect the grid column displaying only. Pass to column the field you

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Johann Spies
On 14 September 2011 10:47, Simon Ashley wrote: > While it looks like a bug, it may not be implemented in the new .grid > or .smartgrid. > There is a posting that may imply this > http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f > and certainly in image examples posted

[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
While it looks like a bug, it may not be implemented in the new .grid or .smartgrid. There is a posting that may imply this http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f and certainly in image examples posted by Bruno Rocha http://www.diigo.com/item/image/121xl/3iob it

[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
While it could be a bug, and seems to be similar to another reported issue: http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f# there has been no formal acknowledgement of it in .grid or .smartgrid, nor have there been any defect tickets raised. You can also see it in a