User Guide
Delta interface (Flash Professional only) 395
Delta.getOperation()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
delta.getOperation()
Parameters
None.
Returns
A number; returns the operation that was performed on the item within the original collection.
Description
Method; returns the operation that was performed on this item within the original collection.
Valid values for this are
DeltaPacketConsts.Added, DeltaPacketConsts.Removed, and
DeltaPacketConsts.Modified.
You must either import mx.data.components.datasetclasses.DeltaPacketConsts or fully qualify
each constant.
Example
The following example calls the getOperation() method:
while(dpCursor.hasNext()) {
dpDelta = Delta(dpCursor.next());
op=dpDelta.getOperation();
trace("DeltaPacket source is: " + dpDelta.getDeltaPacket().getSource());
switch(op) {
case mx.data.components.datasetclasses.DeltaPacketConsts.Added:
trace("***In case DeltaPacketConsts.Added ***");
case mx.data.components.datasetclasses.DeltaPacketConsts.Modified: {
trace("***In case DeltaPacketConsts.Modified ***");
}
}
Delta.getSource()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
delta.getSource()