Re: [web2py] Selecting a linked field

2011-09-12 Thread Richard Vézina
Mistake in my first paragraph table why not use On Mon, Sep 12, 2011 at 4:35 PM, Richard Vézina wrote: > It seems to me correct except for the view, if you want a table not use : > > Controller : > table = crud.select(db.data) > return dict(table=table) > > > > View : > {{=table}} > > > You can

Re: [web2py] Selecting a linked field

2011-09-12 Thread Richard Vézina
It seems to me correct except for the view, if you want a table not use : Controller : table = crud.select(db.data) return dict(table=table) View : {{=table}} You can also make your select constraint in the controller : query = (db.data.FIELD == SOMETHING) table = crud.select(db.data, query

[web2py] Selecting a linked field

2011-09-12 Thread Chris Rowson
I have two tables: - db.define_table('providers', Field('name'), Field('email'), Field('tel') db.define_table('data', Field('dataowner', db.auth_user, default=auth.user_id, writable=False, readable=