this should be fixed in trunk, we will release a new version.
On Sunday, 3 April 2016 02:21:38 UTC-5, Lionel Roubeyrie wrote:
>
> Hi all,
> I just start with this great framework and I have a similar issue. In a
> table there's two 'list:reference' Fields but none is searchable in the
> grid view.
> Is there some special things to do before?
>
> Le dimanche 8 novembre 2015 10:53:35 UTC+1, mweissen a écrit :
>>
>> 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.