XUpdateResolver component parameter
The XUpdateResolver component has one authoring parameter, the Boolean
includeDeltaPacketInfo
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.
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.
The following is an example of an XML update packet when the
parameter is set to
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/
xupdate">
<xupdate:remove select="/datapacket/row[@id='100']"/>
</xupdate:modifications>
The following is an example of an XML update packet when the
parameter is set to
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/
xupdate"
transId="46386292065:Wed Jun 25 15:52:34 GMT-0700 2003">
<xupdate:remove select="/datapacket/row[@id='100']" opId="0123456789"/>
</xupdate:modifications>
Common workflow for the XUpdateResolver component
The following procedure outlines the typical workflow for the XUpdateResolver component.
To use an XUpdateResolver component:
Add two instances of the XMLConnector component and one instance each of the DataSet
1.
component and the XUpdateResolver component to your application, and give them instance
names.
Select the first XMLConnector component, and use the Parameters tab of the Component
2.
inspector to enter the URL for the external XML data source that you want to access.
With the XMLConnector component still selected, click the Schema tab of the Component
3.
inspector and import a sample XML file to generate your schema.
Note: You may need to create a virtual schema for your XML file if you want to access a
subelement of the array that you are binding to the data set. For more information, see "Virtual
schemas" in Using Flash.
Use the Bindings tab of the Component inspector to bind an array in the XMLConnector
4.
component to the
Select the DataSet component and use the Schema tab of the Component inspector to create
5.
the DataSet fields that will be bound to the fields of the object within the array.
908
Chapter 6: Components Dictionary
parameter. When this parameter is set to
:
false
:
true
property of the DataSet component.
dataProvider
, the update packet
true
includeDeltaPacketInfo
includeDeltaPacketInfo
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers