Correction - just noticed that Tom did reply with an alternate tree control.

I'd prefer to stay with the control provided by MM if possible. It will take an act of congress to get this customer to use a control from another vendor. If MM's tree simply won't work then I'll take a look.

Thanks for the reply.




At 4/27/2005 11:56 AM, you wrote:
I sent this to the list a few days ago but received no response. If anybody has any ideas please take a moment to reply.


I'm using cftree for the first time and am having a problem getting it to behave. Server config is version 6.1 on Red Hat.


I can successfully load the tree and populate it from a query.

First question - I would like to populate the fields in the form based on the selection from the tree but have not been able to get any javascript events like onClick(); to work - is there a way to do this that I am missing? The only work around I could figure out was to add a submit button which reloads the entire form with the fields populated. It works, but not as smooth as I would like.

Second question - when the form reloads after the form submit the tree is collapsed. I would like it to open and highlight the record that was selected when the form was submitted. Is there any way to do that?

Here's a cut and paste of the tree code:

<cftree name="tProjects" width=200 height=435 fontsize=14 bold="yes" completePath="yes" highlighthref="yes" appendkey="Yes">
<cfoutput query="qProjects" group="projectType">
<cftreeItem value="#uCase(projectType)#" parent="tProjects" expand="no">
<cfoutput group="projectCondition">
<cftreeItem value="#uCase(projectCondition)#" parent="#projectType#" expand="no">
<cfoutput>
<cfTreeItem value="#ID#" parent="#projectCondition#" display="#projectName#">
</cfoutput>
</cfoutput>
</cfoutput>
</cftree>


TIA

Jeff

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm





Reply via email to