• 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: Is there an easy way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there an easy way


  • Subject: Re: Is there an easy way
  • From: Mark Morris <email@hidden>
  • Date: Thu, 22 Feb 2007 11:07:19 -0600

Gino,

One approach would just be to treat this as two separate problems. Creating a repetition (or maybe just an array of numbers, to potentially be used in a repetition) that goes from the current month back 11 (2, 1, 12, 11, ..., 3) is not too hard, and creating an EOQualifier that limits your date range to a particular month isn't too hard. Put them together, and voilĂ !

You could do this by fetching when a month is chosen for display, or, if you have all the records in memory already, by using the EOQualifier to filter the existing array of records.

Regards,
Mark

On Feb 22, 2007, at 10:12 AM, Gino Pacitti wrote:

Hi All

Can anyone help with a little problem

I have a table with records that contains a Date and I need to sort them so that I have repetition of every month. Current and trailing 11.

So:

Febuary
January
December
etc..

And if the current month was June is would be:


June May April March Etc..

Then I need to be able to click in and see the full list of records for any given month.

What would be a good way to achieve this?

Would RawRawsForSQL or is there some nested repetition that might suit?

Best
Gino



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40onpointsoftware.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Is there an easy way (From: Gino Pacitti <email@hidden>)

  • Prev by Date: Re: Exception in saveChanges(): rowDiffsForAttributes - snapshot does not contain value
  • Next by Date: Problem passing strings to my wrapper component
  • Previous by thread: Is there an easy way
  • Next by thread: Problem passing strings to my wrapper component
  • Index(es):
    • Date
    • Thread