PRB: Accessing Data Changes in the OnCellChange Event Procedure (283182)
The information in this article applies to:
- Microsoft XML 2.0
- Microsoft XML 2.5
- Microsoft XML 2.6
- Microsoft XML 3.0
This article was previously published under Q283182 SYMPTOMS
The oncellchange() event of the XML Data Source Object (DSO) is fired when the value of one of its bound XML data elements is modified. You can access the name of the field that was modified and its original data value before the change by writing code in the DSO's oncellchange event procedure. You can do this by accessing the datafld property of the Window.Event object. However, it is not possible to access the modified field's new data value in the oncellchange event procedure. When it is accessed in this event procedure, the Value property of the datafld object returns the old value of the modified data field.
CAUSE
This behavior is by design. The new data value of a modified field is not accessible in the oncellchange event of an XML DSO.
RESOLUTION
Write code in the onbeforeupdate and onafterupdate event procedures of the HTML elements that are bound to an XML DSO to identify and compare data values before and after the modification.
Modification Type: | Major | Last Reviewed: | 10/12/2001 |
---|
Keywords: | kbDHTML kbDSupport kbMSXMLnosweep kbprb KB283182 |
---|
|