Re: Concatenating two fields into yet another field
Re: Concatenating two fields into yet another field
- Subject: Re: Concatenating two fields into yet another field
- From: Chuck Hill <email@hidden>
- Date: Thu, 11 Dec 2003 11:29:33 -0800
At 12:14 AM 11/12/2003 -0800, Deirdre Saoirse Moen wrote:
>I'd completely forgotten about the data being key/value pairs, in part
>because I'd been working in other paradigms for a while. Doh!
>
>> EOGenericRecord is fine for modeling join tables
>> and such but is best avoided for real work. If you really must, then
>> something like this:
>>
>> timeSlot.takeValueForKey(timeslot.valueForKey("startTime"), "tsDescrip
>> ");
>
> public EOGenericRecord timeSlot;
>
> ...
>
> public String timeSlotText()
> {
> String startTime, endTime;
>
> startTime = timeSlot.valueForkey("startTime");
> ...
> }
>
>Gives the error:"cannot resolve symbol : method valueForKey
>(java.lang.String)
>
>..which is weird, because timeSlot *is* an EOGenericRecord and that
>should be a valid method.
>
I notice in your code example that valueForKey has a lower case k. However
the case is right in the error message. I can't see why this would not
work unless it is picking up some other definition of EOGenericRecord. I'd
do a full clean and rebuild and see if that helps. Otherwise it is time to
start poking around in a debugger.
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.