Using ActionScript 2.0 Components |
|
|
|
| Creating an Application with Components > Bind data components to display gift ideas > Filter the gift ideas to match the offense | |||
You will use the Binding tab in the Component inspector to bind the XMLConnector, DataSet, and DataGrid component instances to one another.
products_xmlcon (XMLConnector) instance selected on the Stage, click the Bindings tab in the Component inspector.results.products.product array item and click OK.DataSet <products_ds> instance in the Component Path pane. Select dataProvider:array in the Schema Location pane. Click OK.This option means that the data will pass from the products_xmlcon instance to the products_ds instance (rather than passing in both directions, or passing from the DataSet instance to the XMLConnector instance).
products_ds instance. In the Bindings tab of the Component inspector, notice that the component's data provider appears in the Binding List (the top pane of the Bindings tab). In the Binding Attributes pane, the Bound To parameter indicates that the products_ds instance is bound to the products_xmlcom instance, and the binding direction is In.
In the next few steps you will bind the DataSet instance to the DataGrid instance so that the data that is filtered by the data set will be displayed in the data grid.
products_ds instance still selected, click the Add Binding button in the Bindings tab. dataProvider: array item and click OK.dataProvider: array item is selected in the Binding List. products_dg (DataGrid) instance in the Component Path pane. Select dataProvider:array in the Schema Location pane. Click OK.
|
|
|
|