Update bound parameter value without refreshing Tree View
Hi,
I have a Tree View in my dashboard that contains some items, I want that each time the user selects an item in the tree, this bound parameter in the Tree View updates:
So I've set that each time an item is selected in the tree, the dashboard containing the Tree View gets refreshed to update the parameter.
The Tree Type is set as "Search" and the problem is that when the dashboard gets refreshed the text box of the search bar gets cleaned and all the items the user might have opened to get to a specific one also get closed.
A workaround that I have found is to call a component service function to store the bound parameter into a variable in order to get the value without refreshing (I'm using assemblies). I've already tried using XFSelectionChangedTaskResult, but it doesn't help.
I was wondering if there was any other way to do this that I'm missing.
Thanks :)
Hi Caccia
You shouldn't have to refresh the Treeview to pass the bound parameter value associated with it. If you have set the parameter value of the XFTreeItem correctly e.g. example below... and assuming userSelection is (a) an Input Parameter and (b) bound to your TreeView component
new XFTreeItem(uniqueName, headerText, foreground, isBold, IsEnabled, isSelected, isExpanded, imageFileSourceType, imageNameOrPath, parameterValue, children);You should be able to pass it to another component / dashboard by refreshing the target dashboard only (e.g the place you want to receive the result)
You only need to refresh the TreeView itself if you are getting tricky with multi-select, for example
Hope this helps
Sam