Delta.getId()

Availability

Flash Player 7.

Edition

Flash MX Professional 2004.

Usage

delta.getId()

Parameters

None.

Returns

An object; returns the unique ID of this item within the DeltaPacket collection.

Description

Method; returns a unique identifier for this item within the DeltaPacket collection. Use this ID in the source component for the delta packet to receive updates and make changes to items that the delta packet was generated from. For example, assuming that the DataSet component sends updates to a server and the server returns new key field values, this method allows the DataSet component to examine the resulting delta packet, find the original transfer object, and make the appropriate updates to it.

Example

The following example calls the getId() method:

while(dpCursor.hasNext()) {
    dpDelta = Delta(dpCursor.next());
    trace("id ["+dpDelta.getId()+"]");
}