Hi Isomorphic,
As MySQL (prior to ver 5.5) doesn't have BOOLEAN datatype, I have used TINYINT (1) in my client-server applications for almost 10 years now.
I tried smartclient ver 11 and couldn't find any control that can work perfectly with TINYINT (1) field type, I tried editorType="checkbox", it doesn't work with datasource type="boolean" and sqlStorageStrategy="SingleChar10" and when I change the datatype="integer", and tried to save the record, the control complained that it should be whole number. the same when I tried valueMap with 0 mapped to false and 1 mapped to true.
I did manage to get it work when I change editorType="comboBox" with valueMap, but I have to change the value of the boolean field before saving (If I wanted to keep the save value, I had to change it to other value and then change it back), the same error occured when I tried to save the record directly without changing it first.
Did I overlook something or smartclient wont work with TINYINT (1) used to store boolean field?
Thank you,
Boen, TP,
As MySQL (prior to ver 5.5) doesn't have BOOLEAN datatype, I have used TINYINT (1) in my client-server applications for almost 10 years now.
I tried smartclient ver 11 and couldn't find any control that can work perfectly with TINYINT (1) field type, I tried editorType="checkbox", it doesn't work with datasource type="boolean" and sqlStorageStrategy="SingleChar10" and when I change the datatype="integer", and tried to save the record, the control complained that it should be whole number. the same when I tried valueMap with 0 mapped to false and 1 mapped to true.
I did manage to get it work when I change editorType="comboBox" with valueMap, but I have to change the value of the boolean field before saving (If I wanted to keep the save value, I had to change it to other value and then change it back), the same error occured when I tried to save the record directly without changing it first.
Did I overlook something or smartclient wont work with TINYINT (1) used to store boolean field?
Thank you,
Boen, TP,
Comment