• 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: Value Type Invalid...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Value Type Invalid...


  • Subject: Re: Value Type Invalid...
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 24 May 2005 21:49:20 -0700

Because it's true, you should fix your EOModel!  :-P

See
http://developer.apple.com/documentation/WebObjects/UsingEOModeler/4WorkingW
ithAttributes/chapter_4_section_3.html#//apple_ref/doc/uid/TP30001018-DontLi
nkChapterID_3-BABFGECE

You are missing valueType = d (or B if you want BigDecimal).

Chuck



At 12:16 PM 25/05/2005 +1000, LD wrote:
>>>>
Hi there,

I've got an entity 'Product' with an attribute 'freightOffsetRatio' as
follows:
     {
    allowsNull = Y;
    columnName = "FREIGHT_OFFSET_RATIO"; 
    externalType = numeric; 
    name = freightOffsetRatio; 
    precision = 5; 
    scale = 4; 
    valueClassName = NSDecimalNumber; 
  },

Any ideas why the following problem occurs when saving a Product when no
value is suppled by the user?

The run-log gives the following on saving a product...
[2005-05-25 12:05:05 EST] <WorkerThread2> value type ' ' on attribute
"freightOffsetRatio" of entity "Product" is invalid. You should fix your
EOModel.

Thanks.

WO5.2.4 / Mac OS X 10.4.1 / PostgreSQL 8.0.3

 with regards,
--

LD


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
.net

This email sent to email@hidden
<<<<



--

Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Value Type Invalid...
      • From: LD <email@hidden>
References: 
 >Value Type Invalid... (From: LD <email@hidden>)

  • Prev by Date: Re: Using EO
  • Next by Date: Re: Value Type Invalid...
  • Previous by thread: Re: Value Type Invalid...
  • Next by thread: Re: Value Type Invalid...
  • Index(es):
    • Date
    • Thread