MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 304

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

After the server finishes with the update packet, either successfully or unsuccessfully, it should
send back to your Flash application a results packet containing errors or additional XML updates
resulting from the update operation. If there are no messages, the results packet should still be
sent, but it will have no operation result nodes.
The following example shows a sample results packet for an update packet that has no errors and
contains no XML updates:
<results_packet nullValue="{_NULL_}" transID="46386292065:Wed Jun 25 15:52:34
GMT-0700 2003"/>
A sample results packet (with XML updates) follows:
<results_packet nullValue="{_NULL_}" transID="46386292065:Wed Jun 25 15:52:34
GMT-0700 2003">
<operation op="remove" id="11295627479" msg="The record could not be
found"/>
<operation op="update" id="02938027477">
<attribute name="id" curValue="105" msg="Invalid field value" />
</operation>
</results_packet>
The results packet can contain an unlimited number of operation nodes. Operation nodes
contain the results of operations from the update packet. Each operation node should have the
following attributes/child nodes:
: An attribute describing the type of operation that was attempted. Must be insert, delete,
op
or update.
An attribute that holds the ID from the operation node that was sent out
id:
msg (optional): An attribute containing a message string that describes the problem that
occurred when attempting the operation
: 0, 1, or more child nodes that give field-level specific information. Each field node, at a
field
minimum, should have a
which gives the field-level message. It can also optionally contain a
holds the most up-to-date value for that field in that row on the server.
Server-side requirements for resolving data for RDBMS
This section describes requirements that your server code must fulfill. It contains information
relevant for the server administrator who is handling server-side functions for your Flash
application. It contains the following topics:
Example of an RDMBSResolver component XML update packet
About receiving results from an external data source
In addition to the information in this section, see the DevNet article "Using the RDBMSResolver
to Update a Database" at
304
Chapter 14: Data Integration (Flash Professional Only)
attribute, which contains the field name, and a
name
www.macromedia.com/devnet/mx/flash/articles/delta_packet.html.
attribute,
msg
attribute, which
curValue

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents