I have set up the data structure for the bizobj, but I am still getting the 
same error.  The data entered through the cell 
appears to be of type unicode, appearing to cause the problem.  The cells 
dataField is attached to a field set up in 
bizobj which includes a data structure defining the fields type as int. 
(changed it from long to int).  


simon



On 01/04/2012, at 9:55 PM, Paul McNett wrote:

> On 4/1/12 12:48 AM, Simon Giraudo wrote:
>> Hi - I'm new to the list and relatively new to Dabo.
> 
> Welcome!
> 
>> I am getting a data type mismatch error, "table ->  field expecting : type 
>> long; got type unicode".
>> Error is being generated because I am entering the value (a number)  
>> directly into a cell of a dGrid. The cell
>> is connected to a database field of type long,  via a bizobj class. I handle 
>> the unicode type value by converting it
>> to a long. then calculate a new value which populates another cell. Works a 
>> treat, except for the error.
>> 
>> I could create a dialogue that accepts the value through a text box that is 
>> not directly associated with a field data type
>> but I would prefer not to - if possible.  is it possible to type the column 
>> of the grid?
> 
> You could try the DataType property of the dColumn, but if the data is in a 
> bizobj 
> the preferred way is to set biz.DataStructure with the proper data types for 
> each 
> column and then everything should just work.
> 
> Paul
> 
> 
> _______________________________________________
> 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/4f785e40.7000...@ulmcnett.com

_______________________________________________
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/1182aaf7-9e27-4832-9611-ca3d8e5b8...@giraudo.com.au

Reply via email to