Hello everyone,
I created a Visio file for a resource in my DMA and initialized a variable using this:
When I display this variable value in another shape, it correctly displays my Resource GUID.
But when I try to re-use this variable content in another placeholder, it fails. As a workaround, if I type the GUID directly in the shape, it works fine.
Here's my Visio file:
Here's the result:
I was expecting both approaches to give me the same result. Does anyone knows why the variable approach doesn't work?
(I'm using DataMiner 10.1.2.0-9866)
It seems like several concepts got a bit mixed up here:
- The [Guid] placeholder, which is currently only supported in the InitVar shape data, generates a new unique guid. This guid is by no means related to anything on your Visual Overview and is totally random. It is meant as a random seed for your local session.
- The set of the session variable during the InitVar will only occur when that session variable has no value in it's current context. In your example, I believe the ThisGuid session variable already has been set to the guid of the resource. Since this is a global session variable, this value is never cleared and using it in an InitVar will no longer do anything. Instead, you can try using a CardVariable or PageVariable which both have a new context for a new card.
Correct 🙂
Thanks for the clarification Sebastiaan.
So the [Guid] placeholder is something else, not related to the Resource GUID.