User Guide

394 Chapter 6: Components Dictionary
if (deltaObj.getOperation() != DeltaPacketConsts.Added) {
oldValue = (chgItem != null ? (chgItem.oldValue != null ?
encodeFieldValue(field.name, chgItem.oldValue) : __nullValue) :
encodeFieldValue(field.name, deltaObj.getSource()[field.name]));
newValue = (chgItem.newValue != null ? encodeFieldValue(field.name,
chgItem.newValue) : __nullValue);
result+= " oldValue=\"" + oldValue + "\"";
result+= chgItem != null ? " newValue=\"" + newValue + "\"" : "";
result+= " key=\"" + isKey.toString() + "\" />";
}
else {
result+= " newValue=\"" +encodeFieldValue(field.name,
deltaObj.getSource()[field.name]) + "\"";
result+= " key=\"" + isKey.toString() + "\" />";
}
return result;
}
Delta.getMessage()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
delta.getMessage()
Parameters
None.
Returns
A string; returns the message associated with delta.
Description
Method; returns the associated message for this delta. Typically this message is only populated if
the delta packet has been returned from a server in response to attempted updates. For more
information, see “RDBMSResolver component (Flash Professional only)” on page 636.
Example
The following example calls the getMessage() method:
//...
var dpi:Iterator = dp.getIterator();
var d:Delta;
while(dpi.hasNext()) {
d= dpi.next();
trace(d.getMessage());
}
//...