Skip to Content

Evaluate Changes in Collection: Added or Removed Items?

Nov 25, 2017 at 10:31 AM


avatar image

Dear experts,

I am looking for an efficient way to identify changes in a collection which then would trigger an action in an beforeSave event.

Actually the action should be triggered for each added item in the collection and another action should be triggered for each removed item in the collection.

I know that to track changes of single field values can be done using an additional extension field which always stores the value prior to a change.

However for a collection I have not found an efficient solution so far.

Any recommendations how to handle this?

Thank you for your support & ideas!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tobias Kuhn Nov 28, 2017 at 04:15 PM


Am I right assuming that you mean an node[0,n] if you are talking about collections?

If this is the case you could use the normal AfterModify/ OnDelete Events to mark your items and or save the data for later processing in an different node[0,n].

In this abstract definition of the use case its hard to say what could be the best way to do something like this. If you could provide an more realistic example with an simplified use case this would help.

Best regards


10 |10000 characters needed characters left characters exceeded