We are creating a visio that is using a child shape and each of the dynamicaly generated shapes then needs to contain a shape showing the alarm state of an element which is unique to each child shape. We are currently trying to nest placeholders so we can use the obtained parameter from the first table as the row key in the second table and then the value from the second table as the row key in the third table which will give us the element name. See screenshot below
When using
Parameter- 3006,[*,11101]
this resolves the correct parameter from table 2 which we need as the row key for the third table but when using it in this
Parameter- 1008,[*,3006,[*,11101]]
nothing is resolved so is there a limit to the number of times nesting can be used?
If so is there another way we can achieve our aim to obtain the Host name from Table 3 that can then be used in the Element shape data field and show the associated alarm state.
Thanks
For placeholders that can be used in any location, such as the (param, var, regexreplace and others) there is no limit to the amount of nesting allowed.
However, this particular placeholder is specific to the Parameter shape data and doesn't allow nesting. That means only one placeholder will be allowed here.
To resolve this you could
- combine what you have with param placeholders into 1008,[param:<your element>,3006,[param:<your element>,11101,[TableIndex]]]
- Put a placeholder directly in your shape text: [param:<your element>,1008,[param:<your element>,3006,[param:<your element>,11101,[TableIndex]]]]
That’s what the placeholder should be for? Maybe I’m not following though, but in the context of a child shape, the “[TableIndex]” part should be replaced by the index of the row you are showing in that child.
I now have this working. thanks for your help
Hi Toon, This does indeed work if I specify the TableIndex (5000) for Parameter 11101 but then this means I get the same Element generated for each child shape.
How can I get the TableIndex for parameter 11101 to be generated by the child shape so the first child shape uses 5000 and the next 5001 etc. and therefore the shape will link to a different element that is associated with that row in the table. Thanks