User Guide
1508 XUpdateResolver component (Flash Professional only)
Using the XUpdateResolver component
(Flash Professional only)
The XUpdateResolver component is used only when your Flash application contains a
DataSet component and must send an update back to an external data source.
The XUpdateResolver component communicates with the DataSet component by using the
DataSetDeltaToXUpdateDelta encoder. This encoder creates XPath statements that uniquely
identify nodes within an XML file according to the information contained in the DataSet
component’s delta packet. This information is used by the XUpdateResolver component to
generate XUpdate statements. For more information on the DataSetDeltaToXUpdateDelta
encoder, see “Schema encoders” in Using Flash.
For more information on working with the XUpdateResolver component, see “Data
resolution (Flash Professional only)” in Using Flash.
XUpdateResolver component parameter
The XUpdateResolver component has one authoring parameter, the Boolean
includeDeltaPacketInfo parameter. When this parameter is set to true, the update packet
includes additional information that can be used by an external data source to generate results
that can be sent back to your application. This information includes a unique transaction and
operation ID that is used internally by the data set.
The following is an example of an XML update packet when the
includeDeltaPacketInfo
parameter is set to
false:
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/
xupdate">
<xupdate:remove select="/datapacket/row[@id='100']"/>
</xupdate:modifications>
NOTE
The additional information that is included in the update packet invalidates the XUpdate.
You would choose to add this information only if you were going to store it in a server
object and use it to generate a result packet. In this scenario, your server object would
pull the information out of the update packet for it s own needs and then pass on the
(now valid) XUpdate to the database.