On Tuesday, April 17, 2012 03:11:25 AM Cheryl wrote: > 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'.
If somebody had asked me yesterday if the grid worked with boolean I would have said "yes". Maybe some sort of side effect has occurred from some change. Can you run the Dabo demo of the grid? There is a perfect example of using a boolean in the grid for the column 'Geek'. Also have you confirmed the data? Look at the DataSet and confirm you are dealing with a boolean. Johnf _______________________________________________ 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/1704548.UvI61G1JQU@linux-12
