On 4/17/12 2:55 PM, Cheryl wrote:
> Paul McNett<p<at>  ulmcnett.com>  writes:
>> http://paulmcnett.com/test_grid_checkbox.py
>
> That code worked on the in memory database, but when I create a table in
> postgres with a boolean likes_lite_beer field instead of tinyint, I still get
> the datatype mismatch error when I click on the checkbox.

I think the message you are getting is more informational than an error (even 
though 
it claims "ERROR") as Dabo does fine converting tinyints to bool back and forth.

See my new version:

http://paulmcnett.com/test_grid_checkbox_ds.py

This one adds the DataStructure declaration to the biz, stating that the 
likes_lite_beer field is bool and not int. Now, I get that message too but 
saving the 
value back to the database seems to work in any case.

The grid checkbox editor must be hard-wired to use int instead of bool.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to