DeltaItem class (Flash Professional only)

ActionScript Class Name mx.data.components.datasetclasses.DeltaItem

The DeltaItem class provides information about an individual operation performed on a transfer object. It indicates whether a change was made directly to a property of the transfer object or whether the change was made by a method call. It also provides the original state of properties on a transfer object. For example, if the source of the delta packet was a data set, the DeltaItem object contains information about any field that was edited.

In addition to the above, a DeltaItem object can contain server response information such as current value and a message.

Use the DeltaItem class when accessing the changes in a delta packet. To access these changes, use DeltaPacket.getIterator(), which returns an iterator of deltas. Each delta contains zero or more DeltaItem instances, which you can access through Delta.getItemByName() or Delta.getChangeList().

Property summary for the DeltaItem class

The following table lists the properties of the DeltaItem class.

Property

Description

DeltaItem.argList

If a change is made through a method call, this is the array of values that were passed to the method. This property is read-only.

DeltaItem.curValue

If a change is made to a property, this is the current server value of the property. This property is read-only.

DeltaItem.delta

The associated delta for the DeltaItem object. This property is read-only.

DeltaItem.kind

The type of change.

DeltaItem.message

The server message associated with the DeltaItem object.

DeltaItem.name

The name of the property or method that changed. This property is read-only.

DeltaItem.newValue

If a change was made to a property, this is the new value of the property. This property is read-only.

DeltaItem.oldValue

If a change was made to a property, this is the old value of the property. This property is read-only.


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00003432.html