ActionScript 2.0 Components Language Reference |
|
|
|
| RDBMSResolver component > RDBMSResolver.reconcileResults | |||
Flash Player 7.
Flash MX Professional 2004.
resolveData.reconcileResults(eventObject)
eventObject Resolver event object; describes the event object used to compare two update packets. This event object should contain the following properties:
|
Property |
Description |
|---|---|
target
|
Object; the resolver broadcasting this event. |
type
|
String; the name of the event. |
Nothing.
Event; broadcast by the RDBMSResolver component to compare two packets after results have been received from the server and applied to the delta packet.
A single updateResults packet can contain results of operations that were in the delta packet, as well as information about updates performed by other clients. When a new update packet is received, the operation results and database updates are split into two update packets and placed separately in the deltaPacket property. The reconcileResults event is broadcast just before the delta packet containing the operation results is sent using data binding.
The following example reconciles two update packets and returns and clears the updates on success:
on (reconcileResults) {
// Examine results.
if (examine(updateResults)) {
myDataSet.purgeUpdates();
} else {
displayErrors(results);
}
}
|
|
|
|