Am I just being dense here.....

allValues of what? The item is a key in the nesting WORepetition.

thanks

On Mar 24, 2010, at 10:43 AM, Miguel Arroz wrote:

> Hi!
> 
>   allValues()
> 
>   Yours
> 
> Miguel Arroz
> 
> On 2010/03/24, at 15:38, 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/arroz%40guiamac.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