• 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: Return single row?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return single row?


  • Subject: Re: Return single row?
  • From: David Elsner <email@hidden>
  • Date: Thu, 4 Dec 2003 14:13:57 +1100

Try using

  MyObject temp = (MyObject) EOUtilities.objectMatchingKeyAndValue(ec,
"EntityName","attribute", new Integer(0));

Just make sure there is only one object returned from the DB otherwise
an exception will occur.

Dave


On Thursday, December 4, 2003, at 12:56  PM, Drew Thoeni wrote:

> A newbie question:
>
> I have been through several of the tutorials/books recommended by the
> list (thanks for the tips) and have not found an example of using a
> fetchSpec to return a single row *and* then put that returned row into
> an object that can be tied to WOString fields (or other fields) for
> display.
>
> I am able to return lists and place them into a WORepetition and the
> data displays nicely. It's a single row I'm having difficulty with.
>
> Can someone point to an example of this?
>
> Regards,
>
> Drew
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Return single row? (From: Drew Thoeni <email@hidden>)

  • Prev by Date: Re: Return single row?
  • Next by Date: What to do when WO install discs misplaced?
  • Previous by thread: Re: Return single row?
  • Next by thread: What to do when WO install discs misplaced?
  • Index(es):
    • Date
    • Thread