RE: NSNumberFormatter & NSTimestamp -- Not Happening
RE: NSNumberFormatter & NSTimestamp -- Not Happening
- Subject: RE: NSNumberFormatter & NSTimestamp -- Not Happening
- From: "Jonathan Fleming" <email@hidden>
- Date: Wed, 17 Sep 2003 08:08:56 +0100
From: "Albert Jagnow" <email@hidden>
To: "Jonathan Fleming"
<email@hidden>,<email@hidden>
Subject: RE: NSNumberFormatter & NSTimestamp -- Not Happening
Date: Tue, 16 Sep 2003 09:48:33 -0500
>1.) I have created a custom number formatter to give me a BigDecimal on
a
>'price' textField. This works fine on the WOTexField in WOBuilder, but
when
>I make the save to the database (MSSQLServer2000), instead of 345.45 I
only
>get 345 what am I missing in this senario
What is the column type in the database? Is it possible you set the
column type to integer?
I was in such a hurry to get away last night when I answer the later part of
this I forgot to answer this first part, the column type is set to money. In
EOModel
Value Class = NSDecimalNumber
External Type = money
Precision = 2
In the MSSQLServer2000 the Data Type column is money, length 8
In the EOModel created Java Class the type for this attribute is BigDecimal.
Jonathan :^)
_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.