Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 13, 2007 15:16
open dhtmlx forum
I have a form to the right of my menu. Is it possible to retrieve the user data from the object to the form w...

I have a form to the right of my menu. Is it possible to retrieve the user data from the object to the form when clicking on the object?
Answer posted on Feb 13, 2007 15:17

The tree has onClick event so you need to write something similar to:

function my_func(itemId){
                var z= document.forms[0].my_input;
                my_input.value=tree.getUserData(itemId,"name_of_user_data");
}
tree.setOnClickHandler(my_func);

Answer posted by Nadine (Support) on Nov 28, 2014 11:15

Not much can be said in addition to the reply above, but you also can check javascript xml ajax and resource scheduling google calendar and find out what we have probably missed in our explanation.