User Guide
XUpdateResolver.updateResults 1515
Description
Event; called by the resolver component to compare two packets. Use this callback to insert
any code after the results have been received from the server and immediately before the
transmission, through data binding, of the delta packet that contains operation results. This is
a good place to put code that handles messages from the server.
Example
The following example reconciles two update packets and clears the updates on success:
on (reconcileResults) {
// Examine results.
if(examine(updateResults))
myDataSet.purgeUpdates();
else
displayErrors(results);
}
XUpdateResolver.updateResults
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
resolveData.updateResults
Description
Property; property of type deltaPacket that contains the results of an update returned from
the server using a connector. Use this property to transmit errors and updated data from the
server to a DataSet component—for example, when the server assigns new IDs for an auto-
assigned field. Bind this property to a connector’s
results property so that it can receive the
results of an update and transmit the results back to the DataSet component.
Messages in the
updateResults property are treated as errors. This means that a delta with
messages is added to the delta packet again so it can be re-sent the next time the delta packet is
sent to the server. You must write code that handles deltas that have messages so that the
messages are presented to the user and the deltas can be modified before being added to the
next delta packet.