I realize you're responding to Teddy's note and not mine, but when you say
"Apparently if you use cftree in flash format the folders don't expand or
collapse", I have to interject in disagreement. The example I showed did use
a Flash tree and did have expanding folders.
 
In fact, on closer inspection, I see that it does something not obvious from
the docs. It shows the Expand attribute (in CFTreeItem) being something that
takes a yes/no value FOR EACH LEVEL of the tree.
 
I've provided below a cut-down version of that example for you or anyone to
try. Again, it's stand-alone (relies on no other files nor databases, as it
build an in-page query):
 
<!--- Build query of random data. --->
<cfscript>
 recordSize = "10";
 depts = listToArray("Accounting,Finance");
 deptsLen = arrayLen(depts);
 managers = listToArray("Jim,Sue");
 managersLen = arrayLen(managers);
 Users = "Rodd,MAX,Dexter,vicente,August,DeWayne,Ban-Kheong,young,Aries";
 usersLen = listLen(users);
 
 st = structnew();
 for(i=1; i lte managerslen; i=i+1)
 {
  st[managers[i]] = structNew();
  st[managers[i]].manager = managers[i];
  st[managers[i]].dept = depts[randrange(1,deptslen)];
 }
 
 qdata = queryNew("dept,manager,name,nameid");
 for(i=1; i lt recordSize; i=i+1)
 {
  queryAddRow(qData);
  querySetCell(qdata, "name", ListGetAt(users, randrange(1,usersLen) ));
  querySetCell(qdata, "nameid", i);
  m = st[managers[randRange(1,managersLen)]];
   querySetCell(qdata, "manager", m.manager );
   querySetCell(qdata, "dept", m.dept);
 }
</cfscript>
 
<cfquery name="users" dbtype="query">
 select dept,manager,name
 from qdata
 order by dept,manager,name
</cfquery>
 
<cfform name="form1" format="flash" width="500" height="400">
  <cftree
   format="flash"
   Name="tree1">
 
   <cftreeitem value="dept,manager,name"
    display="dept,manager,name"
    query="users" queryasroot="no"
    img="COMPUTER,FOLDER,CD" expand="Yes,no,no">
  </cftree>
</cfform>

 
 
/Charlie
http://www.carehart.org/blog/  

 


  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Howard
Sent: Monday, December 04, 2006 11:07 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] cftree


Thanks.  I'll take a look at this and see if it suits my needs.  The
documents aren't actual files but stored in a DB and displayed in a browser
page.  That's why I was trying to use the cftree control and a query to
mimic a real file system. 
 
I did however figure out what my problem with the cftree tag was.
Apparently if you use cftree in flash format the folders don't expand or
collapse.  I'm looking into whether or not doing it in xml format will suit
my needs. 
 
I did notice that the cftagstore has a couple of different tree controls
there.  Has anyone had any experience with any custom tag tree controls?
Any recommendations if so?
 
Thanks again,
Jeff Howard

 
On 12/4/06, Teddy Payne <[EMAIL PROTECTED]> wrote: 

Here is a flash form way of how AS Fusion handled documents:
 
http://www.asfusion.com/projects/fileexplorer/
 
I use it to manage my file directory easier than Wndows Explorer for my web
related tasks.
 
Teddy

 
On 12/4/06, Jeff Howard < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 


Hey all,
 
I've not used this control before but I was wanting to use it for a document
control application I am developing.
 
I am having an issue with however that I'm hoping someone can help with.  My
tree is either expanded or collapsed but I can't seem to get it to work like
a true tree control where when you click on a folder it expands or
collapses.  Is this an issue with CFTree or am I just overlooking something.
I tried experimenting with the 'expand' parameter but it has no effect on
the function of the tree.  It either makes the tree expanded and unable to
collapse on 'yes' or collapsed and unable to expand when set to 'no'. 
 
Any insight would be greatly appreciated.
 
Thanks in advance.
 
Jeff Howard

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 




-- 
<cf_payne />
Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org  <http://www.acfug.org/> 
------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 



------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

<<attachment: image002.jpg>>

Reply via email to