User Guide
Create a user interface and bind the components with the web service 9
8.
In the Component inspector, double-click the empty value in the Bound To field. In the Bound
To dialog box, select
ComboBox, <products_cb> for the component path and value:String
for the schema location. Then click OK.
Bound To field in the Component inspector
Selecting the component path and schema location in the Bound To dialog box
Next, you will bind the
results parameter in the web service connector to the TextArea
component on the Stage.
9.
In the Component inspector, click the Add Binding (+) button again. In the Add Binding
dialog box, select
results:String, then click OK. In the Component inspector, double-click
the empty value in the Bound To field, and in the Bound To dialog box, select
TextArea,
<tip_ta>
as the component path and text:String as the schema location. Then click OK.
Finally, you will use a Button component and the
trigger() method to trigger the service.
You use the trigger method to attempt to retrieve a tip whenever you click the button.