Re: [web2py] Smartgrid linked table issue.

2012-10-01 Thread Dominic Cioccarelli
Cheers Adi, spot on! On Wednesday, 26 September 2012 03:19:26 UTC+2, Adi wrote: > > I think you need to flip it around, and use facilities instead of servers, > and then you will get the link to servers: > > facilities = SQLFORM.smartgrid(db.facility, linked_tables={}, > user_signature=False, l

Re: [web2py] Smartgrid linked table issue.

2012-09-25 Thread Adnan Smajlovic
I think you need to flip it around, and use facilities instead of servers, and then you will get the link to servers: facilities = SQLFORM.smartgrid(db.facility, linked_tables={}, user_signature=False, links_in_grid=True, editable=False, deletable=False) return dict(facilities=facilities) On Tue

[web2py] Smartgrid linked table issue.

2012-09-25 Thread Dominic Cioccarelli
Hi all, I'm having some difficulties with smartgrid and linked tables. My model is as follows: db.define_table('facility', Field('facility_id','id'), Field('name'), Field('type'), migrate=False) db.define_table('server', Field('server_id','id'), Field('server_name'),