Hi everyone
At the moment I'm tryng to hide some shapes when one variabile provided by other shape is still not settet (or is the first time open of the visio page)
I tried to something like myVar;!=-1 where -1 is a value to understand that the variabile is still not setted, so the control should be locked.
But I have no luck with this. What i'm missing? there is in case a possibility to just disable the control with a condition on the variable?
Hi Marco,
You need to use a 'Hide' shape data ( more info here )
For your use case, the value of the shape data should be :
[sep:-?]<A>?A|Value|[cardvar:myVar]|!=-1Hi Marco,
As far as I understand your question you already have an object that is using the 'hide' or 'show' behavior based on a parameter value, and you're searching on how to set the initial value when opening the card, right?
If that is the case you can use the InitVar on the page data to set an initial value on the variable when the page loads.
https://docs.dataminer.services/user-guide/Basic_Functionality/Visio/session_variables/Initializing_a_session_variable.html
Hi Jeroen
Thanks for your response, you helped me a lot with the InitVar to setup correctly the page at the start
Hi Emmanuel
Thanks for your response, I need a little rework on your script to hide the element with the value of the variable is equal -1, and also I used a generic variable, and not a cardvariable scope
[sep:-?]?A|Value|[Var:selectedPort]|=-1