• 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: Filtering array returned by an EO's relationship (D2J)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering array returned by an EO's relationship (D2J)


  • Subject: Re: Filtering array returned by an EO's relationship (D2J)
  • From: Ricardo Strausz <email@hidden>
  • Date: Tue, 28 Oct 2003 12:34:28 -0600

Did you try dataSource.setAuxiliaryQualifier(aQualifier);

On lunes, octu 27, 2003, at 00:25 America/Mexico_City, Ray Ackland wrote:

My database holds some main, stable entities, which are related to some continually updated trivial entities. Specifically staff members and time sheet records.

Currently the staff member can view their existing time records, but this returns '000s of them so is slow to process as well as providing too much information. I am trying to find a way that I can filter these to just the last n records (the last week say, or the last 20 entries).

I can do this by getting the array returned by the storedValueForKey() method, and doing an in-memory filteredArrayWithQualifier() to limit the results. But this would require the complete array to be sent to the client first.

I also imagine I can invoke a server side method to return the filtered array. But is there a "simple" way to return just the selection I want? I know I could use a fetch specification using the desired qualifier, but will that relate the returned objects to the entity I am calling it from, hence avoiding death and destruction for the rest of my programme?

Ray.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Filtering array returned by an EO's relationship (D2J)
      • From: Ray Ackland <email@hidden>
References: 
 >Filtering array returned by an EO's relationship (D2J) (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: Static methods another Question
  • Next by Date: VERY confused about 5.2.2: OS/JDK combinations
  • Previous by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Next by thread: Re: Filtering array returned by an EO's relationship (D2J)
  • Index(es):
    • Date
    • Thread