Hi all,
Some advice is required on how to scope a session variable properly. I'm observing that my session variable is being scoped per Dataminer Cube session when the desired outcome is to scope it per Visio file.
At the page level, I'm using:
InitVar ---> ElementName:Element_A
I have several Visio files that does the same thing:
e.g.:
Visio file A
InitVar ---> ElementName:Element_A
Visio file B
InitVar ---> ElementName:Element_B
Visio file C
InitVar ---> ElementName:Element_C
However, the end result is that I see the following when I load Visio file A first:
Visio file A
ElementName:Element_A
Visio file B
ElementName:Element_A
Visio file C
ElementName:Element_A
Hi Bing,
The answer of Ive can apply to both page and shapes, but I would recommend to use it typically on Shapes. For page level - or initialization - I would suggest you to use the following: Configuring a page to update a session variable when another session variable changes | DataMiner Docs.
Important here is that you make sure to use the option 'ExecuteSetsOnInit' as well.
Kind Regards,
Jarno
Hi Jarno. Thanks for the post. I did experiment with this approach and found that it is working most consistently for the use case I'm working on.
I stumbled upon this post which answered my question: https://community.dataminer.services/question/visio-page-inititvar-behavior.
However, I'm open to hear any other ideas.