Hi DOJO.
We have a single visio drawing that we wish to be used by four similar systems, depending on a variable we will be either showing or hiding parts of the visio.
From an Adult visio we are obviously able to set the variable from a button click which will then load the child visio correctly - this works well.
However, the variable is not changed when clicking one of the four systems in the treeview, it remains set to the last value set from the Adult visio - So the question is ( IF system 1 is clicked in treeview set var to 1 ELSE IF system 2 is clicked in treeview set var to 2 etc )
Thank you
Hi
If I understand the setup correctly, you have a parent view and a set amount of child views which all use the same Visio file. The Visio file lets you select a specific one of the child views and shows some data from that one. Now you want when selected a specific child view from the surveyer that that view is already set as that variable.
If this is the case that should be possible by setting that variable by using the [this view] placeholder. This can for example be done by having a InitVar on the page with a value like this: selectedView:[RegexReplace:^(?!CH10)(?!CH14)(?!FO3)(?!FO4).*,[this view],CH10]
This will set the selectedView variable to the view name (if that view name is in the list) or CH10 as default if it is not in the list.
I would also recommend to use PageVariables because from the comment that the variable stays the same that seems you are using global variables which is less adviceable in this situation. Page variables can be used by adding the PageVariable option (add to Options custom variable) on the shape that sets the variable, then it can be accessed by [pagevar:pagename]
I hope this solves the issue presented
Hi
What do you mean exactly with the treeview? Could you provide images of what your setup looks like and what you are clicking that is not working?