Advertisement

08.05.2008 at 09:13AM PDT, ID: 23622761 | Points: 500
[x]
Attachment Details

Want to use a CFTREE to populate form fileds on the same page on cftree selection

Asked by dblumenstetter in ColdFusion Application Server, Macromedia Dreamweaver, ColdFusion Studio

Tags: ,

Hi all,

So I have a tree, it populates a building, all the floors, then all the rooms by floor, then all the equipment in each room.

I'd like a tab navigator on the right to populate equipment data when the cftree is changed.

I cant seem to make this work.  I'm able to bind the tree node value to a form field but not much else.

Please help. See attached code.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
<cfform action="treedetails.cfm" target="_blank" name="form1" method="post" preservedata="true" format="flash" timeout="300">
 
<cfformgroup type="hdividedbox">
 
<cfformgroup type="vbox" width="440">
 
<cftree name="PearsonTree"
hscroll="yes"
height="400"
width="400"
border="no"
appendkey="yes" vscroll="no">
 
<cftreeitem query="Site_Equipment" queryasroot="no"
		value="SiteName, FloorName, RoomName, ID"
		display="SiteName, FloorName, RoomName, Label" 
		expand="no" >
        
</cftree>
 
<!--- a hidden field that updates the tree node value each time it changes --->
 
<cfoutput>
<cfinput type="hidden" label="myinput" name="myinput" id="myinput" bind="{PearsonTree.selectedNode.getProperty('data').value}">
 
<cfinput name="Submit" type="submit" value="View Details">
 
</cfoutput>
 
</cfformgroup>
 
<cfformgroup type="vbox">
 
<!--- Start Form with tabs --->
<cfformgroup type="tabnavigator">
 
<cfformgroup type="page" label="General">
 
<cfoutput>
 
<!--- Equipment details that I'm not sure how to bind to the tree to get the data --->
	<cfinput type="text"
	label="Building:"
	name="Site"
         bind=""
	size="50"
	maxlength="50">
    
 
</cfoutput>
<cfelse>
</cfif>
 
 
</cfformgroup>
 
<cfformgroup type="page" label="Details">
 
</cfformgroup>
 
<cfformgroup type="page" label="Scope & Interval">
 
</cfformgroup>
 
<cfformgroup type="page" label="Maintenance Log">
 
</cfformgroup>
 
<cfformgroup type="page" label="Upstream Devices">
 
</cfformgroup>
 
<cfformgroup type="page" label="Loads">
 
</cfformgroup>
 
</cfformgroup>
 
</cfformgroup>
</cfformgroup>
 
 
</cfform>
[+][-]08.07.2008 at 09:21PM PDT, ID: 22187445

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 04:35AM PDT, ID: 22188965

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 10:29AM PDT, ID: 22191869

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628