Found it, 'float' is not a field type, I should have used 'double'.
Nevertheless 'float' is accepted as field type in table definitions 
(shouldn't be) and is not displayed in search forms.
hth
-Mirko

On Monday, October 20, 2014 3:21:21 PM UTC+2, Mirko wrote:
>
> Have this issue also with Linux(Ubuntu).
>
> On Saturday, October 18, 2014 8:17:59 PM UTC+2, Mirko wrote:
>>
>> Up...
>> Anybody else had this issue ?
>> Thanks,
>> -Mirko
>>
>> On Friday, October 17, 2014 8:44:41 AM UTC+2, Mirko wrote:
>>>
>>> Hi all,
>>> maybe I should elaborate a little bit more:
>>>
>>> here's my model:
>>> db.define_table('myTable',
>>>                 Field('myDate','datetime'),
>>>                 Field('myString','string'),
>>>                 Field('myFloat','float'),
>>>                 )
>>>
>>> here's my controller:
>>> def index():
>>>     grid = SQLFORM.smartgrid(db.myTable)
>>>     return locals()
>>>
>>> and here's what I get:
>>>
>>>
>>> <https://lh4.googleusercontent.com/-CPjxo21rh2U/VEC6M40E8QI/AAAAAAAAFtk/JiW3ZBbFcUg/s1600/w2pFloatBug.png>
>>> Float field is not in the dropdown list, any ideas ?
>>>
>>> I'm using web2py Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 on 
>>> windows platform (downloaded 2 days ago from web2py website).
>>>
>>> Thanks for helping,
>>>
>>> -Mirko
>>>
>>> On Thursday, October 16, 2014 5:03:12 PM UTC+2, Mirko wrote:
>>>>
>>>> Sorry, is the float search implemented in grid and smartgrid?
>>>>
>>>> I have a table with date, string and float fields and float fields are 
>>>> not searchable.
>>>>
>>>> Thanks,
>>>>
>>>> -Mirko
>>>>
>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to