[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
Hi Kenneth You're right, I think it must have been broken. SQLTABLE is not displaying the id of reference fields. -D

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
Well, it does work if you use the linkto variable. In gluon/sqlhtml.py around line 1310 there is a line which only works if linkto is set: elif linkto and field.type.startswith('reference'): To make it show the referenced id plainly (without linkto) you can simply add another elif line furth

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
> Can you open a Issue on google > code?http://code.google.com/p/web2py/issues/list Ok Bruno, I did it: http://code.google.com/p/web2py/issues/detail?id=141

[web2py] Re: SQLTABLE question

2011-01-02 Thread villas
> I always use 'represent' for reference fields as a workaround. Bruno's suggestion to use db.tablename.fieldname.represent fixes 'webgrid' too.

Re: [web2py] Re: SQLTABLE question

2011-01-02 Thread Bruno Rocha
I guess this is a bug, happening here with the new DAL, but I always use 'represent' for reference fields as a workaround. I thought this was fixed in trunk, I'll make more tests in this and if I find a solution I'll send a patch to Massimo. Can you open a Issue on google code? http://code.google