Forum Discussion

Caccia's avatar
Caccia
New Contributor II
5 days ago
Solved

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...
  • sameburn's avatar
    5 days ago

    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