User Guide
638 Chapter 6: Components Dictionary
Common workflow for the RDBMSResolver component
The following steps describe the typical workflow for the RDBMSResolver component.
To use an RDBMSResolver component:
1.
Add two instances of the WebServiceConnector component and one instance of the DataSet
and RDBMSResolver components to your application, and give them instance names.
2.
Select the first WebServiceConnector component. Then use the Parameters tab of the
Component inspector to enter the Web Service Definition Language (WSDL) URL for a web
service that exposes data from an external data source.
Note: The web service must return an array of records to be bound to the data set.
3.
Use the Bindings tab of the Component inspector to bind the first WebServiceConnector
component’s results property to the DataSet component’s
dataProvider property.
4.
Select the DataSet component, and use the Bindings tab of the Component inspector to bind
data elements (DataSet fields) to the visual components in your application.
5.
Bind the DataSet’s deltaPacket property to the RDBMSResolver’s deltaPacket property.
The update instructions are sent from the DataSet component to the RDBMSResolver
component when the
DataSet.applyUpdates() method is called.
6.
Bind the RDBMSResolver’s updatePacket property to the second WebServiceConnector’s
params property to send data back to a method that will parse the XML update packet. Set the
kind of that params property to auto-trigger so that the connector will send the update packet
as soon as data binding copies it over.
7.
Add a trigger to initiate the data binding operation: use the Trigger Data Source behavior
attached to a button, or add ActionScript.
In addition to these steps, you can also use the RDBMSResolver component to create bindings to
apply the result packet sent back from the server to the data set.
www.macromedia.com/devnet/mx/flash/ data_integration.html.
RDBMSResolver class (Flash Professional only)
Inheritance MovieClip > RDBMSResolver
ActionScript Package Name mx.data.components.RDBMSResolver
The methods, properties, and events of the RDBMSResolver class allow you to connect to a
DataSet component and make changes to external data sources.
Method summary for the RDBMSResolver component
The following table lists the method of the RDBMSResolver class.
Method Description
RDBMSResolver.addFieldInfo() Adds a new item to the fieldInfo collection, which is used for
setting up an RDBMSResolver component dynamically at
runtime.