Re: Using WODisplayGroup to Scan Through Dates/Weeks
Re: Using WODisplayGroup to Scan Through Dates/Weeks
- Subject: Re: Using WODisplayGroup to Scan Through Dates/Weeks
- From: Nathan Dumar <email@hidden>
- Date: Mon, 12 Jul 2004 15:41:10 -0400
I've never tried this, but ...
You could make a fetchspec in EOModeler with two (more) bindings:
(greater than) endOfWeek
(less than) startOfWeek
where both are NSTimestamps (or whatever).
In the page construct, initialize the two NSTimestamps however you
want, but a week apart. (The fetch would then get the default week.)
Make two actions: one to increment and one to decrement the two
timestamps by one week, and then refetch.
Nathan
On Jul 12, 2004, at 1:26 PM, Hunter Hillegas wrote:
I have an entity that I would like to display in groups of weeks at a
time (i.e. default is current week, next batch is next week, etc...).
The entity has a field called 'dateOfEntry' that is a timestamp.
I have been using WODisplayGroup to do my batch display for some other
components...
What I am wondering is how to apply a qualifier that changes based on
the batch number. Is there a 'WO Way' to do this? The calendar math
isn't the real problem, I am just not sure how to get that stuff
called when the WODisplayGroup next and previous batch actions are
called I guess.
I could ditch the display group and write my own stuff but I would
rather not if I don't have to.
Any help is appreciated.
Thanks,
Hunter
_______________________________________________
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.