Re: [dabo-users] help with checkbox in dgrid

Author: Cheryl

Posted: 2012-04-16 at 17:13:14

Cheryl <cheryl@...> writes:

I tried adding the following to the dGrid afterInit method.

def afterInit(self):

col = dabo.ui.dColumn(self, Name="key_field", Order=10,

DataField="key_field",DataType="integer", Width=60,

Caption="Key?", Sortable=False,Searchable=False, Editable=True)

self.addColumn(col)

It created a checkbox on the grid, but when I edited the data, I received error:

data type mismatch, Expecting type 'bool', got type 'int'.

I am using a Postgres backend.

_______________________________________________

Post Messages to: Dabo-users@leafe.com

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/loom.20120417T000818-636@post.gmane.org

©2012 Cheryl