RDBMSResolver.reconcileUpdates

Availability

Flash Player 7.

Edition

Flash Professional 8.

Usage

resolveData.reconcileUpdates(eventObject)

Parameters

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

target

Object; the resolver broadcasting this event.

type

String; the name of the event.

Returns

None.

Description

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.

Example

The following example reconciles two results and clears the updates on success:

on (reconcileUpdates) {
    // Examine results.
    if (examine(updateResults)) {
        myDataSet.purgeUpdates();
    } else {
        displayErrors(results);
    }
}