Select to view content in your preferred language

Attributes with Double Data Type

833
0
10-16-2012 03:33 AM
MaryEllen_Perko
Frequent Contributor
Hi.  Does anyone know how I can get around the following problem?

I'm using the AttributeQuery sample to create a query add-in for a Silverlight viewer app and everything is working fine except for a problem I'm encountering with double data types (in Oracle SDE).  Depending on the query results, I get the following errors:

     All rows must be of type 'System.Int32' for the "BEG_INTERSECT_MP' attribute.

     All rows must be of type 'System.Decimal' for the "BEG_INTERSECT_MP' attribute.

The BEG_INTERSECT_MP attribute values are a mixture of integer (e.g. 1) and double (e.g. 0.5) in both cases.  I'm sure the error I receive just depends on which value is in the first returned row.  But, I need to get this working so I don't get any errors.

Any help is appreciated.

Thanks,
Mary Ellen

P.S.  I did find the following reference later today so it looks like I'm on the right track in the explanation of the problem.  I would still appreciate anyone's opinion on how to address this.

http://forums.arcgis.com/threads/48685-How-to-use-MapApplication.ShowPopup?p=166911&viewfull=1#post1...  (rzwaap, 1/26/2012)
0 Kudos
0 Replies