CONTENTS DELETED
The author has deleted this message.
|
q := Query read: OrderedItems where: [:each | each
someInstanceVariable = 'someValue'].
q retrieve: [:each | each quantity * each item price]. session execute: q. Except for the minor detail that glorp doesn't yet include arithmetic functions in the list of known functions. I've added them, and published the results as GlorpExpressions 7.7 - 5 + AR 56880 1 At 03:39 PM 4/8/2009, VAM wrote: Hello! --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
CONTENTS DELETED
The author has deleted this message.
|
At 02:03 AM 4/9/2009, VAM wrote:
Alan, I right understand that this glorp query returns sum(each quantity * each item price)? And Can I load GlorpExpressions 7.7 - 5 + AR 56880 1 in VW7.6 or better add arithmetic functions in the list of known functions Ah, no, that would return just the quantity * item price, not the sum. To return the sum you'd need q retrieve: [:each | (each quantity * each item price) sum]. I think you should be able to load that version in 7.6, but if you can't, you can take the code change and add it yourself, it's just two lines of code added to createBasicFunctions... --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
CONTENTS DELETED
The author has deleted this message.
|
I've published a version 7.7 - 60 + AR 46997 1
which allows this now. At 11:18 PM 4/17/2009, VAM wrote: Hi! --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |