I'm attempting to visualize the relationship between two table parameters using a Green cells to represent values where the row and column are connected. Similar to a matrix router, but with non-matrix parameters.
To accomplish this I'm using two sets of Child groups, one nested within the other. I also have a filtered select box to set [var:EdgeID].
Outer Group (Rows)
- Children: Row
- ChildrenSource: */8700
- ChildrenSort: TableColumn|8702
- ChildrenPanel: StackVertical
- ChildrenFilter: VALUE=8701 == [var:EdgeID]/*
Inner Group (Columns, nested within each row)
- Children: Row
- ChildrenSource: */8900
- ChildrenSort: TableColumn|8926
- ChildrenPanel: StackHorizontal
- ChildrenFilter: VALUE=8901 == [var:EdgeID]/*
Cell Group (Contains a gray (Hide) and green (Show) square, nested within each column)
- SetVar:(Adds this cell's row & column indexes to a session variable array using a complex RegexReplace)
- SetVarOptions: Control=Shape
- Options: NoAlarmColorFill
- Show/Hide: <A>-A|Element:*|PARAMETER:8908,[parentTableIndex]|=[tableIndex]
- Tooltip: [displayTableIndex] => [param:[this element],8926,[parentTableIndex]]
And here is command in the automation script that updates the table values:
element.SetParameterByPrimaryKey(8908, tableIdx, newValue);
I have a button in this Visio that triggers the automation script. If I'm looking at the actual table data, it updates without issue, but most of the time the shapes that should Show/Hide according to this data do not update until I "refresh" the view by closing and reopening the element card. Also sometimes the Visio will display impossible states (Presumably due to partially stale data), which is fixed by "refreshing" the card as well.
Is there some way to force a redraw? Or could the options I'm using on the Cell shapes be causing some kind of caching issue? Or any optimizations to try would also be appreciated.
For reference I'm using the Techex MWCore v1.0.3.29 driver and Dataminer v10.3.0.0-13629
Thanks!
As far as I can tell, your configuration looks correct and updates should happen on your conditional evaluations.
Unless 8908 is the table index (which I assume it's not) this looks like something we should investigate. Would it be possible to reach out to our technical support? If it all possible, please try to include a way for us to reproduce the situation (a DELT export of your setup along with the automation script xml, a way to easily access your setup...)
Actually it is a Foreign Key, could that be causing the issue? I’m changing it to reference another row in the foreign table.
It could be, for that I’d need to study the setup more closely. The reason I asked was to figure out if what you’re changing completely influences what shapes need to be visualized itself, rather than some fields that influence the condition.
That makes sense, I’ve opened a ticket about this so hopefully support will be able to help. The DMA is starting have other unrelated errors, so this may actually be something else entirely too.
Thank you, I’m reaching out now.