• 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: how to set value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to set value?


  • Subject: Re: how to set value?
  • From: "Gennady Kushnir" <email@hidden>
  • Date: Sat, 4 Mar 2006 20:00:01 +0300 (MSK)
  • Importance: Normal

hello
if you have created custom class "OpportunityCompany.java" then look into
this .java file to see which datatype is taken as attribute for
setPrimaryCustomer().
Most possibe is "Boolean" or "Number". These are "wrapper classes" while
"true" and "1" are primitive data types. You should use "Bootean.TRUE" or
"new Integer(1)"

if you haven't created that custom class, you can't use method
"setPrimaryCustomer()" as there isn't one. then you should use universal
method, applicable in any case:
takeValueForKey(Boolean.TRUE , "primaryCustomer" );

Regards,
Gennady

> in my OpportunityCompany entity, i have an attribute primaryCustomer.
> this attribute is of external type boolean, and value class(java)
> Number. Therefore it's setPrimaryCustomer() in the java file is a
> Number data type. but i can't seem to pass a 1 or true to it when i
> try aOpportunityCompany.setPrimaryCustomer(1) or
> aOpportunityCompany.setPrimaryCustomer(true). So how can I do it?
>
> Warmest Regards,
> Jim Wong
> email@hidden
>
>
>
>  _______________________________________________
> 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

 _______________________________________________
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

References: 
 >how to set value? (From: Jim Wong <email@hidden>)

  • Prev by Date: Re: unkown exception
  • Next by Date: alert pop-up
  • Previous by thread: how to set value?
  • Next by thread: alert pop-up
  • Index(es):
    • Date
    • Thread