Re: subtotal question

2010-04-20 Thread Ramsey Gurley
On Apr 1, 2010, at 5:30 PM, Lachlan Deck wrote: On 25/03/2010, at 3:08 AM, James Cicenia wrote: I see, that makes sense. I guess I thought there was someway to do it all in the wod You talking about WODictionaryRepetition from JavaWOExtensions? http://developer.apple.com/legacy/mac/librar

Re: subtotal question

2010-04-03 Thread James Cicenia
Yes... that would have been what I was thinking. Though my other solution worked fine and I am now onwards and upwards. Though I will remember that in the future Regards James On Apr 1, 2010, at 4:30 PM, Lachlan Deck wrote: > On 25/03/2010, at 3:08 AM, James Cicenia wrote: > >> I see, that

Re: subtotal question

2010-04-01 Thread Lachlan Deck
On 25/03/2010, at 3:08 AM, James Cicenia wrote: > I see, that makes sense. I guess I thought there was someway to do it all in > the wod You talking about WODictionaryRepetition from JavaWOExtensions? http://developer.apple.com/legacy/mac/library/documentation/WebObjects/Reference/WOJExtensions

Re: subtotal question

2010-03-24 Thread Chuck Hill
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,

Re: subtotal question

2010-03-24 Thread Ramsey Gurley
I think that's possible too with ognl, but I never use those. 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 TimeSheetGrou

Re: subtotal question

2010-03-24 Thread James Cicenia
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() { >

Re: subtotal question

2010-03-24 Thread Ramsey Gurley
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

Re: subtotal question

2010-03-24 Thread Miguel Arroz
Hi! Sorry, I thought you were asking how to get an array of all the values in a dictionary. Then again, what exactly are you trying to do? :) Yours Miguel Arroz On 2010/03/24, at 15:48, James Cicenia wrote: > Am I just being dense here. > > allValues of what? The item is a key in

Re: subtotal question

2010-03-24 Thread James Cicenia
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 wh

Re: subtotal question

2010-03-24 Thread Miguel Arroz
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 w

Re: subtotal question

2010-03-24 Thread James Cicenia
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; }

Re: subtotal question

2010-03-24 Thread James Cicenia
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:

Re: subtotal question

2010-03-24 Thread Johann Werner
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 web

subtotal question

2010-03-24 Thread 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 f