Re: subtotal question
Re: subtotal question
- Subject: Re: subtotal question
- From: Chuck Hill <email@hidden>
- Date: Wed, 24 Mar 2010 10:24:01 -0700
On Mar 24, 2010, at 9:29 AM, Ramsey Gurley wrote:
I think that's possible too with ognl, but I never use those.
You are missing some goodness there, though I would be hesitant to use
them for something like this. Spaghetti bindings are not goodness.
Chuck
On Mar 24, 2010, at 12:08 PM, James Cicenia wrote:
I see, that makes sense. I guess I thought there was someway to do
it all in the wod
thanks.
On Mar 24, 2010, at 11:03 AM, Ramsey Gurley wrote:
I think you want
TimeSheetGroupedEntries: WORepetition{
list = valuesForGroupedKey;
}
public NSArray valuesForGroupedKey() {
return entries().objectForKey(groupedKey());
}
On Mar 24, 2010, at 11:38 AM, James Cicenia wrote:
Maybe it is to early or whatever...
I dont' think I have ever iterated over a dictionary in a
WORepetition.
What are the bindings then for list and item?
I would think my first WORepetition would be:
TimeSheetGroups : WORepetition {
list = entries.allKeys;
item = groupedKey;
}
But what then would be my nested WORepetition to get the array of
objects?
TimeSheetGroupedEntries: WORepetition{
list = ?
}
Thanks
On Mar 24, 2010, at 9:23 AM, James Cicenia wrote:
Thanks for that hint... I knew there had to be a WOWay to do it.
James
On Mar 24, 2010, at 9:11 AM, Johann Werner wrote:
Hi James,
have a look at ERXArrayUtilities.arrayGroupedByKeyPath this
should help you in your task.
jw
Am 24.03.2010 um 15:01 schrieb James Cicenia:
I have a typical list of objects displayed very nicely.
I have been asked to subtotal based upon change of date.
What is the proper webobjects way to do this?
Do I first group them and put them in a dictionary? Then
do two nested repeats with the magical @sum operator?
If so what is the syntax for that operator again?
Thanks
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
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
_______________________________________________
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
_______________________________________________
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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