Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Datasource containing Boolean field cannot be filtered by "true" or "false"
14/06/2011
18:12
Avatar
ajaxgenie
Member
Members
Forum Posts: 4
Member Since:
14/06/2011
sp_UserOfflineSmall Offline

Using 3.8.2 version of JQuery Grid

Datasource is MYSQL TinyInt column, with values of  0 or  1

Grid shows cell values of "true" | "false" , depending on the value from the table

Filter field at boolean column will work if you enter 0 or 1, but not "true" or "false"

Shouldn't they be consistent?

Thanks!

15/06/2011
03:53
Avatar
ajaxgenie
Member
Members
Forum Posts: 4
Member Since:
14/06/2011
sp_UserOfflineSmall Offline

ajaxgenie said:

Using 3.8.2 version of JQuery Grid

Datasource is MYSQL TinyInt column, with values of  0 or  1

Grid shows cell values of "true" | "false" , depending on the value from the table

Filter field at boolean column will work if you enter 0 or 1, but not "true" or "false"

Shouldn't they be consistent?

Thanks!


Anyone have insight on this issue? I'd really appreciate it 🙂

15/06/2011
06:28
Avatar
ajaxgenie
Member
Members
Forum Posts: 4
Member Since:
14/06/2011
sp_UserOfflineSmall Offline

Here's the JSON from Firebug - note the


"false,0,true,"

Those are the two boolean fields with a numeric in between

{"total":12,"page":1,"rows":[{"cell":["<a href='javascript:edit_wb_from_list(32);'><img src='/images

/Tb_edit.png'>",32,"google3","x11aaaaa",false,0,true,null,"2011-04-21T15:55:29Z"],"id":32},{"cell":["

<a href='javascript:edit_wb_from_list(33);'><img src='/images/Tb_edit.png'>",33,"x","<a href="#" onclick

This is rails 2.3.8 with MySQL. If i run SQL on the IRB (console) command line , asking for active = 0 or active = false,
false is returned for both. With 1 or true, I see true returned.

When the search tries to filter the records, 0 entry returns false records , but false returns no records

Hope more details help to find the answer

Thanks!
 

15/06/2011
07:25
Avatar
ajaxgenie
Member
Members
Forum Posts: 4
Member Since:
14/06/2011
sp_UserOfflineSmall Offline

BAH another plugin was the problem, not jqgrid 🙁

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information