ActionScript 2.0 Components Language Reference |
|
|
|
| Delta interface > Delta.getId() | |||
Flash Player 7.
Flash MX Professional 2004.
delta.getId()
None.
An object; returns the unique ID of this item within the DeltaPacket collection.
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.
The following example calls the getId() method:
while(dpCursor.hasNext()) {
dpDelta = Delta(dpCursor.next());
trace("id ["+dpDelta.getId()+"]");
}
|
|
|
|