Adobe COLDFUSION 9 Manual page 1343

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
7
(Optional) To specify SQL manually, type the SQL statement in the SQL pane.
Note: You code SQL manually to use an INNER JOIN instead of a WHERE clause, use an OUTER JOIN, or use a
database stored procedure.
8
(Optional) To specify the data type of a query parameter:
Click the + button under Parameters.
a
Enter the name of the parameter.
b
c
Select the data type.
Review the SELECT statement that displays in the SQL pane, and use the Table and Properties panes to make
9
adjustments, if necessary.
(Optional) Click Test Query.
10
11
Click Save.
ColdFusion/Flex Application wizard
The ColdFusion/Flex Application wizard creates ColdFusion and Flex files for a create, read, update, delete (CRUD)
application. You specify the master, detail, and master/detail pages to include in the application, and the relationship
between the application's pages. The wizard lets you use Visual Query Builder to generate the SQL statements. For
more information about using Visual Query Builder, see
Designing your application
Before starting the ColdFusion/Flex Application wizard, you should determine which pages to include in your
application, including the following:
• Whether each page is a master, detail, or master/detail page
• The fields to display in each page
• The fields that connect one page to another
In the following example, you create an application for an art gallery. The first page lists all the artists that your gallery
represents. When a user selects an artist, a page that lists all the works by that artist appears. When the user then selects
a work of art, a page that contains details about that piece of art appears. In this example, your application contains the
following pages:
• A master page that lists the artists
• A master/detail page in which the master page lists the works of art by the artist selected on the List of Artists master
page, and a detail page that contains details about the artwork selected on the Artwork master page.
You may find it helpful to draw a diagram of the tables and fields that you want to include in your application,
including which ones to display in your application, as the following image shows:
"Using Visual Query
Last updated 8/5/2010
Builder" on page 1337.
1338

Advertisement

Table of Contents
loading

Table of Contents