Author: Simon Giraudo
Posted: 2012-04-16 at 20:54:58
form the research I have done on dGrid, it appears that dGrid is set up to view data and
not edit it. Editing data through dGrid appears to throw this error.
here is a link http://old.nabble.com/Editting-date-fields-in-a-dGrid-td25772025.html
What happens if you change the datatype from integer to bool in afterInit?
simon
On 17/04/2012, at 9:16 AM, John Fabiani wrote:
> On Monday, April 16, 2012 10:13:14 PM Cheryl wrote:
>> 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.
>
> What is the datatype in Postgres?
> Johnf
> _______________________________________________
> 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/3545662.Yq7G1asjVB@linux-12
_______________________________________________
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/804E78E0-D8DA-4E18-88DA-0EFDB01ECBC8@giraudo.com.au