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 PROTECTED] > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/genkush%408ka.mipt.ru > > This email sent to [EMAIL PROTECTED] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
