Programmer's Guide > Interfaces > ADocumentEntityEvent interface > initADocumentEntityEvent method
  
initADocumentEntityEvent method
Initializes the value of an ADocumentEntityEvent created through the DocumentEntityEvent interface. You should only call this method before the ADocumentEntityEvent has been dispatched using the dispatchEvent method, though it can be called multiple times during that phase if necessary. If the initADocumentEntityEvent is called multiple times, the final call takes precedence.
initADocumentEntityEvent(typeArg, canBubbleArg, cancelableArg, object, relatedDocument, relatedNode, result)
Parameters
StringtypeArg
Specifies the event type.
booleancanBubbleArg
Indicates whether or not the event can bubble.
booleancancelableArg
Indicates whether or not the event's default action can be prevented.
CMSObjectobject
Identifies the CMSObject in which the declaration was found.
DocumentrelatedDocument
The Document in which the declaration was found.
NoderelatedNode
DOM Entity containing information about the entity declaration.
Stringresult
Returns
void. A valid entity name to be used a new entity declaration.