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