Adobe COLDFUSION 9 Manual page 1041

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Creating a simple report
The following example shows how to create a simple report by using the Report Wizard and then modifying it. The
example uses the cfartgallery database, which is installed with ColdFusion.
The example shows how to perform the following tasks:
• Create a base report by using the Report Wizard and the Query Builder.
• Use the Expression Builder to modify the data presentation in the report.
• Modify the display text for column data.
• Add a text field to the report and format text and data elements by using report styles.
• Add an image file and images from a database.
• Create and add a calculated field to display the total sales by artist.
• Add group-level and report-level pie charts that show the ratio of sold and unsold art for each artist and for all the
artists in the database.
• Export report styles to a Cascading Style Sheet (CSS) file.
Create a report by using the Report Wizard
Start Report Builder.
1
Select Report Creation Wizard and click OK.
2
3
Click the Query Builder button:
Note: If you have RDS configured, provide the RDS password.
a
From the list of data sources in the database pane, expand the cfartgallery database.
Expand the Tables folder.
b
Double-click the APP.ART table in the database pane. Report Builder adds the APP.ART table to the table pane.
c
d
Double-click the APP.ARTISTS table in the database pane. Report Builder adds the APP.ARTISTS table to the
table pane. Notice that it automatically creates the join between the two tables based on the ARTISTID column.
e
In the APP.ARTISTS table, double-click the FIRSTNAME and LASTNAME columns. The Query Builder adds
the fields to the select statement in the SQL pane.
Last updated 8/5/2010
1036

Advertisement

Table of Contents
loading

Table of Contents