I'm trying to use the MakeTree tag from
http://www.houseoffusion.com/_library/maketree.txt like this:

<cfquery name="getFolders" datasource="#request.dsn#"
username="#request.dbuser#" password="#request.dbpass#">
   SELECT  folderID, parentFolder
   FROM  queueFolders
  </cfquery>

  <cf_MakeTree Query="#getFolders#" Result="sortedFolders" Unique="folderID"
Parent="parentFolder">

It seems to work, but how would I output the result? I've tried:

<cfoutput>#sortedFolders#</cfoutput>

But that gives the error: Complex object types cannot be converted to simple
values.

Any ideas? This tag is done by Michael Dinowitz, so maybe he can shed some
light on this. Thanks.

Cedric Villat


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to