Re: how to set value?
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