> I always use 'represent' for reference fields as a workaround.
Bruno's suggestion to use db.tablename.fieldname.represent
fixes 'webgrid' too.
> 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
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
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
Hi Kenneth
You're right, I think it must have been broken.
SQLTABLE is not displaying the id of reference fields.
-D
5 matches
Mail list logo