Grouping Output From A Query - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

The following figure shows the output of this code:
Reviewing the code
The following table describes the highlighted code and its function:
Code
<cftree name="tree1"
required="Yes"
hscroll="No"
<cftreeitem value="FullName"
query="engquery"
queryasroot="Yes"
img="folder,document"

Grouping output from a query

In a query that you display using a
by the department. In this case, you separate column names with commas in the
attribute.
value
Description
Creates a tree and name it tree1.
Specifies that a user must select an item in the tree.
Does not allow horizontal scrolling.
Creates an item in the tree and put the results of the query named
engquery in it. Because this tag uses a query, it puts one item on
the tree per query entry.
Specifies the query name as the root level of the tree control.
Uses the images "folder" and "document" that ship with
ColdFusion in the tree structure.
When populating a
cftree
specify images or filenames for each level of the tree as a comma-
separated list.
control, you might want to organize your employees
cftree
with data from a
cfquery
cftreeitem
Building tree controls with cftree
, you can
587

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion mx

Table of Contents