I am trying to hide a shape based on a value from a parameter, but the "Hide" is not working.
The condition in question is verifying if a parameter has a value of 100003, and the condition is defined in the following way:
"<A>-A|Element:[this element]|Parameter: 5511,[parenttableindex]|100003|DefaultReturnValue=False"
If I use this condition with the "Show" or with the "Blink" shape data field type, it works, but with Hide, it doesn't.
When using "Show", the shape starts hidden, but once it gets "Shown" it never hides again, even if the condition gets false.
When using "Blink", if the condition is true, the shape is always blinking, and when the condition is false, it stops blinking, so everything seems to be right.
I also assign the text of the shape to show me the value of the parameter, and it seems to be the correct one.
If instead of my condition, I use: "Hide", with value 1, then the shape gets hidden. This seems to be a bug of some sort.
Is this a known issue, or am I doing something wrong?
Thank you
This issue ended up being caused by Inheritance of the Visio shapes. The different types of inheritance when using grouping are shown within this Dojo course: https://community.dataminer.services/courses/visio/lessons/advanced-shape-linking/topic/grouping/
Do note that the video still uses NoCopyElementProperty, this has been replaced by AllowInheritance=false in more recent versions: https://docs.dataminer.services/user-guide/Basic_Functionality/Visio/reference/Overview_of_page_and_shape_options.html#allowinheritancefalse
This was also the specific option that was used to fix the issue
Hi
This is indeed strange behavior. I have attempted to create a similar setup and it works as expected.
What would be the values that you would expect to be resolved for [this element] and [parenttableindex]?
Hi Tomás,
Is it possible to add the condition operator?
<A>-A|Element:[this element]|Parameter: 5511,[parenttableindex]|=100003|DefaultReturnValue=False
Hi Jens. Indeed, I already tried that but it didn’t work.
I managed to bypass this issue by checking for a variable instead of acessing the element directly and use a “SetVar” outside of this shape to add the same value as before.
In this case, it works with the following condition:
-B|Value|[var:inputselected]|=100003|DefaultReturnValue=False
Since this approach is working, the problem seems to be when using a condition with a value directly from the element.
Hi Klaas,
On [this element] I wanted the element information. I tried also with [this elementID].
On [parenttableindex] I was looking to get the index of the current row. I confirmed that this value was correct.
I seemed to managed to fix this problem by using the |Value| as following:
-A|Value|[param:[this elementID], 5511,[parenttableindex]]|!=”100003″|DefaultReturnValue=False
This, however, seems to not work for string columns, which I do need for other columns.