22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

4. The Add Input Parameter dialog box appears.<br />

Enter a value for the name field. This must match an input parameter, such as the name<br />

attribute of a cfreportparam tag included in the cfreport tag that invokes the report<br />

definition.<br />

5. Enter the default label text.<br />

6. Specify a data type and default value. Data type options are the same as for query fields.<br />

7. Click OK.<br />

For more information on using input parameters, see “Using input parameters to pass<br />

variables and other data at run time” on page 1149 and “Using subreports” on page 1155.<br />

Place a query field, calculated field, or input parameter on a report band<br />

1. In the Fields and Parameters panel, use the radio buttons to specify whether to place the<br />

label, the field, or both.<br />

2. Drag the query field, calculated field, or input parameter from the Fields and Parameters<br />

tab to the appropriate report band.<br />

3. Drag the query field, calculated field, or input parameter to the desired band.<br />

4. (Optional) Use the Properties panel to customize the field display.<br />

For example, you might have a query field named query.emp_salary and a calculated field that<br />

sums query.emp_salary, resetting it with each group. Place query.emp_salary in the detail<br />

band, and the associated calculated field in the group footer band.<br />

Using toolbox elements on report bands<br />

You can use the toolbox to add graphic and textual elements, such as images, circles, squares,<br />

lines, dynamic fields, charts, and subreports, to report bands.<br />

This section discusses text, images, circles, squares, lines, and dynamic fields. For information<br />

on charts, see “Using charts” on page 1155. For information on subreports, see “Using<br />

subreports” on page 1155.<br />

The basic technique for adding toolbox elements is to click in the toolbox element and then<br />

drag to define an area in the appropriate report band. For some toolbox elements, such as<br />

image and text box, a dialog box immediately appears, prompting for more information. For<br />

all toolbox elements, you can customize the appearance of the element using the Properties<br />

sheet.<br />

TIP<br />

You can add toolbox elements through the Insert menu.<br />

1140 Creating Reports with Report Builder

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!