dbtreeview questions/problems

I’m trying to use the dbtreeview to navigate a parent-child-grandchild relationship. I have a form with 2 tabpanels. One contains a form with the treeview. The other contains nested forms, the first to edit the parent table (imparments), which in turn has a tabpanel with a related form for the child table (objectives) , which again has one for the grandchild (interventions). The intent is, when you click on a node, that record (and its parents) appears in forms. I attached a screen shot.

This is the binding code:

	_binding = elements.treeviewbean_2_nodisable.createBinding(controller.getServerName(), 'c6tximp');
	_binding.setNRelationDataprovider('calc_treerel');
	_binding.setTextDataprovider('impdesc');
	_binding.setMethodToCallOnClick(globals.gtximp_tree_click, "idprimary"); 

	_binding = elements.treeviewbean_2_nodisable.createBinding(controller.getServerName(), 'c6txgoal');
	_binding.setNRelationDataprovider('calc_treerel');
	_binding.setTextDataprovider('objmemo1');
	_binding.setMethodToCallOnClick(globals.gtxgoal_tree_click, "idprimary");
	
	_binding = elements.treeviewbean_2_nodisable.createBinding(controller.getServerName(), 'c6txintv');
	_binding.setNRelationDataprovider('calc_treerel');
	_binding.setTextDataprovider('invmemo1');
	_binding.setMethodToCallOnClick(globals.gtxintv_tree_click, "idprimary");

Here is a sample for one of the the global onCLick methods:

function gtxgoal_tree_click()
{
	var lcgoalid = arguments[0]
	forms.c6txgoal.get_goal(lcgoalid);// method does find on form with idprimary from treeview
}

and this is the code called in the form to get the record:

function get_goal()
{
     var lcidprimary = arguments[0]	

    var lresult=controller.find()
	if (lresult) //find will fail if autosave is disabled and there are unsaved records
	{
		idprimary = lcidprimary
		lresult = controller.search(true,true)
		controller.loadRecords()
	}
}

Click on the parent nodes works fine, the form displays the selected parent along with the first child and granchild if they exist. The problem is clicking on the child or grandchild nodes. The treeview seems to lose the relationship and only shows the parent nodes. Has anyone done a form navigating with treeview like this? Am I headed in the right direction? Thanks for any suggestions.