• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSNumberFormatter & NSTimestamp -- Not Happening
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Which datatype? NSMutableArray, Vector, Array ???
  • Next by Date: Re: NSNumberFormatter & NSTimestamp -- Not Happening
  • Previous by thread: Re: NSNumberFormatter & NSTimestamp -- Not Happening
  • Next by thread: Re: NSNumberFormatter & NSTimestamp -- Not Happening
  • Index(es):
    • Date
    • Thread