Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need hell with the CfTreeItem tag

Status
Not open for further replies.

jjmew

Programmer
Aug 20, 2002
34
US
I am building a tree with <CFTREE>and i need to do a rutine when some one clicks on one of the items. How i can do it? this is my tree

<cftreeitem display=&quot;#Project_desc#&quot; value=&quot;#project_Id#&quot; queryasroot=&quot;No&quot; expand=&quot;no&quot; >

<cfinclude template=&quot;../AE_new/queries/_getCATofProject.cfm&quot;>

<cfif #project_Id# eq 2>

<cfinclude template=&quot;../AE_new/queries/_getgenfilesqry.cfm&quot;>
<cfloop query=&quot;getgenfiles&quot;>
<cftreeitem value=&quot;#filename#&quot; display=&quot;#TITLE#&quot; parent=&quot;#Project_id#&quot; queryasroot=&quot;yes&quot; expand=&quot;no&quot; onclick=&quot;window.open()&quot; >
</cfloop>


<cfelse>

<cfloop query=&quot;getcatofproject&quot; >
<cftreeitem value=&quot;#Category#&quot; display=&quot;#Category#&quot; parent=&quot;#Project_id#&quot; queryasroot=&quot;no&quot; expand=&quot;Yes&quot;>
<cfinclude template=&quot;../AE_new/queries/_getfilesofCAT.cfm&quot;>


<cfloop query=&quot;getfilesofcat&quot;>
<cftreeitem value=&quot;#filename#&quot; display=&quot;#TITLE#&quot; parent=&quot;#Category#&quot; queryasroot=&quot;no&quot; expand=&quot;Yes&quot; onclick=&quot;window.open()&quot; >

</cfloop>



</cfloop>

</cfif>


</cfloop>

</cftree>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top