OpenWGA 7.0 - TMLScript reference

HDBModelEvent
Property :

eventReceiver

On object HDBModelEvent
Usage Returns the content document whose event script is executed
Description

This normally is the content document whose content class defines the event script. In hierarchical events this not necessarily is the content on which the operation is done.

On certain events however this document does not yet / no more exist. So this content is something different:

  • preCreate: Here the event receiver is the reference document passed to the create operation
  • postDelete: Here the event receiver is the direct parent document of the deleted content