- Code: Select all
widget:type=checkbox
vocabulary=boolTakNie
valuelist.ini has:
- Code: Select all
[boolTakNie]
1 = ✓
0 = ' '
In list view values for "1" are properly shown as "✓" but for "0" is shown instead of space.
I'm using Xataface 2.0alpha1
Checkbox vocabulary problem
3 posts
• Page 1 of 1
Checkbox vocabulary problemI have field with:
valuelist.ini has:
In list view values for "1" are properly shown as "✓" but for "0" is shown instead of space. I'm using Xataface 2.0alpha1
Re: Checkbox vocabulary problem0 is a reserved value in ini files unfortunately. You'll need to define this vocabulary in a delegate class or via the __sql__ directive (i.e. store values in a table).
-Steve
Re: Checkbox vocabulary problemI have found solution in one of posts. Here is for memory:
There is need to add the following function in delegate class:
And then add vocabulary=checkbox for checkbox fields. BTW: Xataface should automatically render checkbox fields properly not to "1" and "0"
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 2 guests |