Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kofitw on Jan 18, 2010 03:18
open dhtmlx forum
Items selected from Dhtml Tree are not the ones shown when one returns to page.

I am really impressed at the prompt reponse to user questions. problem is



I use the options selected from the Dhtml tree to generate a report.

Where Dhtml is found on website.
On the page I generate the report , there is a section for report variables, run report.
Under the report variables is where the Dhtml Tree is.
When the option for report variables is clicked it opens in a new window, after selection the options are sent to it's parent window where the report can then be run.

How selection is done.
There are three levels to the Tree and the third level also has elements under it .
I click on the parent (first) level to select all options and I deselect three options from the third level parents.
Now I use the ones selected to generate a report.
The results from the reports leaves out some selected items.
I reload the page where I selected the variables (where Dhtml Tree is used ) and it rather selects the third level parents that I deselected and deselects the ones I selected.
















Answer posted by Alex (support) on Jan 18, 2010 05:35

There is getChecked() method that returns the list of selected (checked)

http://www.dhtmlx.com/docs/products/dhtmlxTree/samples/02_checkboxes/05_tree_checkboxes.html

http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxtree:api_toc_alpha

>> I click on the parent (first) level to select all options and I deselect three options from the third level parents.

You can use 3-state checkes functionality. Please see the sample mentioned above