• 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: Concatenating two fields into yet another field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Concatenating two fields into yet another field
      • From: Deirdre Saoirse Moen <email@hidden>
References: 
 >Re: Concatenating two fields into yet another field (From: Chuck Hill <email@hidden>)
 >Re: Concatenating two fields into yet another field (From: Deirdre Saoirse Moen <email@hidden>)

  • Prev by Date: Re: Additional VM options
  • Next by Date: Re: Session timeout during large response via setContentStream
  • Previous by thread: Re: Concatenating two fields into yet another field
  • Next by thread: Re: Concatenating two fields into yet another field
  • Index(es):
    • Date
    • Thread