How to retrieve old values when using .new[..] operator on e

Posted by Aravindh Ramasamy on 21-Dec-2016 03:11

when one or more entities created using .new operator the entities are of the same name. how can i access that entities and its attributes

for example

entity1.a=60 then using new operator we create entity1.a=50, entity1.a=40, entity1.a=30, entity1.a=20

my question is how can i add entity1.a=60 and entity1.a=30 and also how can i use that specific value in some other calculation. 

can the new operator be used like new operator in java

All Replies

Posted by mparish on 21-Dec-2016 11:34

e1.a=collection.b->sum will do it.

This thread is closed