I have an element with the name CTECRPCC01. In this element there exists a table called "DPIC Interfaces" (PID 4100). In a Visio shape, I want to get the table's primary key column (PID 4101)
In Visio, I have a shape that I am using to try and go to this element and retrieve this primary key column.
However, the bottom shape doesn't work correctly. Instead of giving me the 4101 column containing the primary keys, it will give me the 4202 column containing the names. If I change the 4101 to any other column number, it will work correctly, but not the 4101.
Can someone help me understand what I might be doing wrong here? Is it just not possible to get primary keys in Visio? How can I work around this if that's the case?
Those protocols are configured with naming on the table (example below). That means when you request the key it will go through the naming logic to show the display value. That results in what you are seeing.
options=";naming=/2402"
As is often the case, there is a more complicated workaround by executing an automation script upon the page opening and outputting all keys into a session variable from within the script. But maybe it’s more interesting to know the actual use case to figure out why exactly the keys are needed?
Thanks for pointing this out, I hadn’t checked for that particular detail. Do you know of any workarounds or a way to bypass this naming logic in the Visio so that I can get the real values in the column? Would the only viable alternative be to create a new column in that table that clones the primary keys?