Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Source Property (DataDOMEvent Object)

Office 2003

A read-only property that returns a reference to the XML Document Object Model (DOM) where the data validation event is occurring.

expression.Source

expression Required. Returns a reference to the DataDOMEvent object.

Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Remarks

Afer you have set a reference to the XML DOM node that the Source property returns, you can use any of the properties and methods that are supported by the XML DOM.

Note  To learn more about the XML DOM and all of the properties and methods that it supports, see the MSXML 5.0 SDK documentation in the Microsoft Script Editor (MSE) Help system.

Example

In the following example from the Structural Editing developer sample form, the Source property of the DataDOMEvent object is used to return a reference to the XML DOM node that caused the initial change. If the node name matches certain criteria, a custom function is called.

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


Applies to | DataDOMEvent Object


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.