User Guide

Table Of Contents
Creating reports with the ColdFusion MX 7 reporting 799
<cfset variables.ResultVar='#arguments.Name#'>
</cfif>
<cfif Trim(arguments.Address1) NEQ "">
<cfif variables.ResultVar NEQ "">
<cfset variables.ResultVar='#variables.ResultVar & variables.CRLF#'>
</cfif>
<cfset variables.ResultVar='#variables.ResultVar & arguments.Address1#'>
</cfif>
<cfif Trim(arguments.Address2) NEQ "">
<cfif variables.ResultVar NEQ "">
<cfset variables.ResultVar='#variables.ResultVar & variables.CRLF#'>
</cfif>
<cfset variables.ResultVar='#variables.ResultVar & arguments.Address2#'>
</cfif>
<cfif variables.ResultVar NEQ "">
<cfset variables.ResultVar='#variables.ResultVar & variables.CRLF#'>
</cfif>
<cfset variables.ResultVar='#variables.ResultVar & arguments.City & ", " &
arguments.State & " " & arguments.Zip#'>
<cfreturn variables.ResultVar>
6.
Click OK when you are finished.
To use a report function:
1.
Place a dynamic field on the appropriate report band.
The Add Field dialog box displays.
2.
Specify Manually Entered Expression and click OK.
The Expression Builder displays.
3.
Specify "report.functionname".
4.
Click OK.
Expressions and the Expression Builder
Many elements of the Report Builder (including query fields, calculated fields, input parameters,
images, and report object attributes) are single operand ColdFusion expressions. Because these
elements are expressions, you can manipulate them with CFML functions.
The Expression Builder is a graphical interface that lets you quickly apply CFML functions to
Report Builder elements. Uses for the Expression Builder include the following:
Many of the report object attributes (such as PrintWhen) accept expressions, which you can
associate with query parameters, input parameters, or ColdFusion page variables. You can tie
report attributes and columns to display based on runtime data or user preference.
Concatenating fields
Formatting fields
Calculated fields
Accessing and displaying ColdFusion page variables and scopes