I have tried it again: without any changes - now I get the correct answers. At this time it is not clear what has happened.
Sorry .... 2015-11-08 10:52 GMT+01:00 Martin Weissenboeck <[email protected]>: > I have a table like > > db.define_table("mytable", > Field("reffield", "list:reference anothertable"), > ) > > The search widget of SQLFORM.grid("mytable", ...) does not show the > reffield. > > In gloun/sqlhtml.py I have found > > if fields[0]._db._adapter.dbengine == 'google:datastore': > search_options['string'] = ['=', '!=', '<', '>', '<=', '>='] > search_options['text'] = ['=', '!=', '<', '>', '<=', '>='] > search_options['list:string'] = ['contains'] > search_options['list:integer'] = ['contains'] > search_options['list:reference'] = ['contains'] > > Therefore a list:reference field will only be recognized if the table is > stored in a google:datastore. > Is this an intended behaviour? > > Regards, Martin > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

