I have the following query and would like the tmp2 column showing as a checkbox
SELECT id, (CASE WHEN tmp=5 THEN 1 ELSE 0 END) AS tmp2 FROM artikel
or
SELECT id, (CASE WHEN tmp=5 THEN 'true' ELSE 'false' END) AS tmp2 FROM artikel
Although I am able to show the checkboxes themselve the values aren't set according to the results of the query. Is this possible at all or am I doing something wrong. In that case can you give me an example how to fix this?
Best regards
Anske
If you configure the grid database adapter column to be a CheckBoxField and you set CheckTrue to the string value representing Boolean True you should be able to link it as a Boolean.
The CheckTrue and CheckFalse values that need to match the cell contents and evantually map on the checked value of the checkbox can be set at column level in the database adapter.