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      ([email protected])
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de
>>>>> 
>>>>> This email sent to [email protected]
>>>>> 
>>>> 
>>>> 
>>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com
>> 
>> This email sent to [email protected]
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to