Hi Dojo!
I tried to set up a variable to pass it to an execute for an automation script. It works fine with a "SetVar" for a PageVariable, but I have to click initially click on the Visio page (as expected). Is there any way to load (click on the page) the value automatically?
I also tried to use the "Execute" shape data field with a "Set", but this does not work, because I have no trigger "Event" or "ValueChanged".
BR
Daniel
Hi Daniel,
To load a session variable when opening a page you can:
- Use Initvar to define fixed values or simple placeholders. It won’t work with placeholders that need server data like
[param:]or[property:]. - Use Execute if you want a variable to update when another value changes. You can make it run once at the start by enabling the ExecuteSetsOnInit option.
InitVar tries to set a value in every context: global, workspace, card, and page. If a context already has that variable, it stays unchanged. Page variables are always reinitialized because each page opens with a fresh context. However, if you initialize the same variable on two different pages in the same card, the second one won’t affect the card context.
Thanks for your answer and your explanation. At the moment its not working in our context. I'm now passing the display key directly to the script using the execute command. I might come back to the community regarding the variable issue later.
Hi Sebastiaan,
thanks for your answer and sorry for my "shorted" headline in the question.
Would it be possible to use "InitVar" with the "Options" as "CardVariable"? Or is "InitVar" only usable as a global "session variable"?
BR Daniel