RDBMSResolver component (Flash Professional only)
Resolver components are used with the DataSet component (part of the data management
functionality in the Flash data architecture) to save changes to an external data source. Resolvers
include both the RDBMSResolver component and the XUpdateResolver component. Resolvers
take a delta packet (returned by
format appropriate to the type of resolver. The update packet can then be transmitted to the
external data source by one of the connector components. Resolver components have no visual
appearance at runtime.
The RDBMSResolver component creates an XML update packet that can be easily parsed by into
SQL statements for updating a relational database. The RDBMSResolver component is
connected to a DataSet component's DeltaPacket property, sends its own update packet to a
connector, receives server errors back from the connector, and communicates them back to the
DataSet component—all using bindable properties.
For more information about the Flash data architecture, see "Data resolution (Flash Professional
only)" in Using Flash. For more information about relational databases, see "Resolving data to a
relational database (Flash Professional only)" in Using Flash. For a complete example of an
application that updates data using the RDBMSResolver component, see
devnet/mx/flash/articles/delta_packet.html.
Note: You can use the RDBMSResolver component to send data updates to any object you write
that can parse XML and generate SQL statements against a database—for example, an ASP page, a
Java servlet, or a ColdFusion component.
Using the RDBMSResolver component (Flash Professional only)
You use the RDBMSResolver component only when your Flash application contains a DataSet
component and must send an update back to the data source. This component resolves data that
you want to return to a relational database.
RDBMSResolver parameters
You can set the following authoring parameters for each RDBMSResolver instance by using the
Parameters tab of the Component inspector:
TableName
is a string representing the name (in the XML) of the database table to be updated.
This string should match the name of the
there are no updates to this field, this parameter should be blank, which is the default value.
UpdateMode
is an enumerator that determines the way key fields are identified when the XML
update packet is generated. Possible values are as follows:
•
umUsingAll
updated. This is the safest value to use for updating, because it guarantees that another user has
not modified the record since you retrieved it. However, this approach is time consuming and
generates a larger update packet.
•
umUsingModified
be updated. This value guarantees that another user has not modified the same fields in the
record since you retrieved it.
636
Chapter 6: Components Dictionary
DataSet.deltaPacket
Uses the old values of all of the modified fields to identify the record to be
Uses the old values of all of the fields modified to identify the record to
Components Dictionary
) and convert it to an update packet in a
RDBMSResolver.fieldInfo
CHAPTER 6
www.macromedia.com/
item to be updated. If
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?