
667
DEVELOPING
COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Las
t
upda
te
d 8/5/2010
chartHeight = "500"
chartWidth = "600"
dataBackgroundColor = "yellow"
font = "ariel"
fontBold = "yes"
fontItalic = "yes"
fontSize = "12"
foregroundColor = "red"
gridLines = "2"
labelFormat = "number"
markerSize = "10"
showBorder = "yes"
showLegend = "yes"
showMarkers = "yes"
showxGridLines="yes"
showyGridLines="yes"
tipBgColor="blue"
tipStyle = "MouseOver"
title = "AIR Integration testing"/>
</mx:Application>
Using the Document class
The Document class is the proxy for the ColdFusion Document service, which provides the functionality of the
cfdocument
tag and its child
cfdocumentsection
and
cfdocumentitem
tags.
•
You specify the
cfdocument
attributes as Document object properties. You specify document content that is not
in a section as a content element of the document object.
•
You represent document sections in the documentSection element of the document object. The
documentSection
element is an arrays of objects, each of which represents a single document section. These objects include a content
element for the section content, an optional
documentItem
element for the document items, and elements for any
other section attributes.
•
You represent all document items in a document section (or the document object) as an array of objects with type
and content elements. The array element type field specifies whether the item is a header, footer, or page break. You
specify the document item array as a
documentItem
element of the document object or a
documentSection
object.
•
You call the
document object execute()
function to run the service.
The following excerpt from the full example shows how to create sections and items and add them to a document:
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...