• 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: Fetching from related object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching from related object


  • Subject: Re: Fetching from related object
  • From: Art Isbell <email@hidden>
  • Date: Fri, 23 Apr 2004 15:15:38 -1000

On Apr 23, 2004, at 12:54 PM, Randall Perry wrote:

qual = EOQualifier.qualifierWithQualifierFormat("custNo = '" +
custInfo.custNo() + "' and dateTime > '" + dateOneYearAgo, null);

There is a to-one relationship defined in EOModeler between the Log and
CustView entities.

You might run into trouble embedding dates in the qualifying format string. It's usually preferable to take advantage of EOF's ability to property format "where" clauses (and easier to read as well). Assuming the to-one relationship is Log.custView:


qual = EOQualifier.qualifierWithQualifierFormat("custView = %@ and dateTime > %@", new NSArray(new Object[] {custInfo, dateOneYearAgo}));

Aloha,
Art
_______________________________________________
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: Fetching from related object
      • From: Randall Perry <email@hidden>
References: 
 >Fetching from related object (From: Randall Perry <email@hidden>)

  • Prev by Date: SSL and appendToResponse
  • Next by Date: Re: Fetching from related object
  • Previous by thread: Re: Fetching from related object
  • Next by thread: Re: Fetching from related object
  • Index(es):
    • Date
    • Thread