MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 250

Cfml language reference
Table of Contents

Advertisement

226
<HEAD>
<TITLE>
CFTREE Example
</TITLE>
</HEAD>
<BODY>
<H3>CFTREE Example</H3>
<!--- Use CFFORM when using other CFINPUT tools --->
<CFFORM ACTION="cftree.cfm" METHOD="POST" ENABLECAB="Yes">
<!--- Use CFSELECT to present the contents of the query by column --->
<H3>CFSELECT Presentation of Data</H3>
<H4>Click on an employee's last name and hit "see information for
this employee" to see expanded information.</H4>
<CFSELECT NAME="EmployeeNames" MESSAGE="Select an Employee Name"
SIZE="#getEmployees.recordcount#" QUERY="GetEmployees"
VALUE="LastName" REQUIRED="No">
<OPTION value="">Select All
</CFSELECT>
<INPUT TYPE="Submit" NAME="" VALUE="see information for this employee">
<!--- showing the use of CFTREE --->
<!--- Use CFTREE for an expanded presentation of the data --->
<!--- Loop through the query to create each branch of the CFTREE --->
<H3>CFTREE Presentation of Data</H3>
<H4>Click on the folders to "drill down" and reveal information.</H4>
<P>CFTREEITEM is used to create the "branches" of the tree.
<P>
<CFTREE NAME="SeeEmployees" HEIGHT="150" WIDTH="240"
FONT="Arial Narrow" BOLD="No"
ITALIC="No" BORDER="Yes"
HSCROLL="Yes" VSCROLL="Yes"
REQUIRED="No" COMPLETEPATH="No"
APPENDKEY="Yes" HIGHLIGHTHREF="Yes">
<CFLOOP QUERY="GetEmployees">
<CFTREEITEM VALUE="#Emp_ID#" PARENT="SeeEmployees" EXPAND="No">
<CFTREEITEM VALUE="#LastName#" DISPLAY="Name"
<CFTREEITEM VALUE="#LastName#, #FirstName#"
<CFTREEITEM VALUE="#Department#" DISPLAY="Department"
<CFTREEITEM VALUE="#Department#" PARENT="#Department#"
<CFTREEITEM VALUE="#Phone#" DISPLAY="Phone"
<CFTREEITEM VALUE="#Phone#" PARENT="#Phone#"
PARENT="#Emp_ID#" QUERYASROOT="No"
EXPAND="No">
PARENT="#LastName#" EXPAND="No"
QUERYASROOT="No">
PARENT="#Emp_ID#" QUERYASROOT="No"
EXPAND="No">
EXPAND="No" QUERYASROOT="No">
PARENT="#Emp_ID#" QUERYASROOT="No"
EXPAND="No">
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents