602
Using Templates
Query-Error-Response template (Flash Professional only)
The Query-Error-Response template helps you create applications that perform a simple
query to a remote data source, and then, depending on the outcome, display the results in a
response form or show an error on an error form. This type of application is useful when
performing queries on web services because they are structured as a simple query/response
transaction. There are two steps for using this template, which are discussed in this section.
Configuring your service
The first step is to configure the service that your application will call. The template uses a
web service connector. If you use a web service as your data source, you can configure the web
service connector in the Parameters tab on the Component Inspector. Enter the URL to the
service in the WSDL field, and select the operation your application will call.
You can replace the web service connector with another connector that is appropriate to your
application from the Components panel. If you select your own connector, you can delete the
web service component, but you must edit the actions in Frame 1 of the Application form to
replace “wsc” with the instance name of the connector you created. This ensures that the
Submit button triggers your service.
For more information about web service and other connectors, see Chapter 1, “About
Components” in
Using Components
.
Customizing your forms
The next step is to customize your forms. The Query form should contain fields that
correspond to the parameters of your service. The Response form should contain the fields
that correspond to the results of your service. The Error form shows an error message to the
user when something has gone wrong in the process of calling the service. You can show any
message on the Error screen.
To customize the Query form:
1.
Select the Query form in the Screen Outline pane.
2.
Use components from the Components panel, such as text input fields, radio buttons,
combo boxes, and others, to create the input fields for the Query form.
3.
After you’ve laid out your form elements, use the Parameters tab on the Component
Inspector to create bindings between your components and the parameters of your
service connector.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...