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

Author: Cheryl

Posted: 2012-04-16 at 22:11:25

Cheryl <cheryl@...> writes:

>

>

> the datatype in Postgres is boolean

>

>

the code that I should have posted originally datatype = "bool", but it didn't

work, so I tried "integer", but that didn't work either.

def afterInit(self):

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

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

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

self.addColumn(col)

this is the code that actually gave me the error: data type mismatch, Expecting

type 'bool', got type 'int'.

_______________________________________________

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.20120417T050624-513@post.gmane.org

©2012 Cheryl