MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 305

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

Advertisement

Example of an RDMBSResolver component XML update packet
To handle server-side code, you'll need to understand the XML update packet generated by the
resolver component. The information contained within the XML update packet is affected in part
by the component parameter values that are assigned by the developer. For information on the
RDBMSResolver component parameters, see "Using the RDBMSResolver component (Flash
Professional only)" in Using Components.
The following example shows an RDBMSResolver component's XML update packet generated
with
parameter set to
updateMode
<update_packet tableName="customers" nullValue="{_NULL_}"
transID="46386292065:Wed Jun 25 15:52:34 GMT-0700 2003">
<delete id="11295627477">
<field name="id" type="numeric" oldValue="10" key="true"/>
</delete>
<insert id="12345678901">
<field name="id" type="numeric" newValue="20" key="true"/>
<field name="firstName" type="string" newValue="Davey" key="false"/>
<field name="lastName" type="string" newValue="Jones" key="false"/>
</insert>
<update id="98765432101"> <field name="id" type="numeric" oldValue="30"
key="true"/>
<field name="firstName" type="string" oldValue="Peter"
newValue="Mickey" key="false"/>
<field name="lastName" type="string" oldValue="Tork" newValue="Dolenz"
key="false"/>
</update>
</update_packet>
Elements in the XML update packet include the following:
: An ID generated by the DeltaPacket that uniquely identifies this transaction. This
transID
information should accompany the results packet returned to this component.
: This type of node contains information about a row that was deleted.
delete
: This type of node contains information about a row that was added.
insert
: This type of node contains information about a row that was modified.
update
: A number that uniquely identifies the operation within the transaction. This information
id
should accompany the results packet returned to this component.
: This attribute contains the new value for a field that was modified. It appears only
newValue
when the field value has changed.
: This attribute is
key
determined by the combination of the RDBMSResolver component's
the
fieldInfo.isKey
umUsingKey
if the field should be used to locate the row to update. This value is
true
setting, and the type of operation (insert, delete, update).
:
Advanced topics in data integration
parameter,
updateMode
305

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents