Skip to main content
Newcomer
August 8, 2024
Solved

Close custum tree hierarchy in filter

  • August 8, 2024
  • 3 replies
  • 0 views

I have a custum tree hierarchy with multiselection, 

JooRodrigues_0-1723133517962.png

It looks like this 

JooRodrigues_1-1723133580138.png

Is there a way to format this component to open like this:

JooRodrigues_2-1723133652511.png

 

Best answer by sameburn

Hi JoãoRodrigues 

If you have already built a multi select treeview than you are already controlling the output 

In your logic, when you create the XFTreeItem(s) there is a boolean variable you pass in called isExpanded. This enables you to control which members are expanded and when, based on your selections.  

Remember if you start with parents not expanded, then you also need to ensure that the parent is expanded, after you select its children.

So it is just a bit more development from what you've already created in terms of parameter control based on your selections in your tree view logic

3 replies

sameburnOneStream EmployeeAnswer
OneStream Employee
August 8, 2024

Hi JoãoRodrigues 

If you have already built a multi select treeview than you are already controlling the output 

In your logic, when you create the XFTreeItem(s) there is a boolean variable you pass in called isExpanded. This enables you to control which members are expanded and when, based on your selections.  

Remember if you start with parents not expanded, then you also need to ensure that the parent is expanded, after you select its children.

So it is just a bit more development from what you've already created in terms of parameter control based on your selections in your tree view logic

Newcomer
August 9, 2024

Thank you sameburn , that helped.

Newcomer
February 26, 2025

Hi! how you got multiselect function? thank you!

OneStream Employee
February 26, 2025

Hi Alvaro

To setup a Multi-Select Tree View requires some development to achieve. Please see blog below which details summary steps to achieve 

How to build a Multi-Select TreeView | OneStream Community

Hope this helps

Sam