Show All

# Operation Property (DataDOMEvent Object)

A read-only property that returns a string value indicating the type of action that is applied to an XML Document Object Model (DOM) node during a data validation event.

expression.Operation

expression Required. Returns a reference to the DataDOMEvent object.

## Security Level

0: Can be accessed without restrictions.

## Remarks

The values that the Operation property returns include Insert, Update, and Delete.

## Example

In the following example from the Structural Editing developer sample form, the Operation property of the DataDOMEvent object is used to check the type of action that is occurring; if it is a delete action, the code calls a custom function:

    function msoxd__item::OnAfterChange(eventObj)
    {
       if (!eventObj.IsUndoRedo && eventObj.Operation == "Delete"
          && eventObj.Site.nodeName == "item" &&
             eventObj.Source.nodeName == "item")
       {
          Calculate();
       }
    }

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp