[IGN-1985 ] Accessing subviews with scripting

I’d like to use scripting to access the property on subviews that opens and closes them.
Basically, I have two tables on a screen and I’d like to auto close any open subviews on the second table whenever I change the selected row on the first table.
Does anyone know if it’s possible to access the property to do this?

We’re literally working on a feature to allow this through scripting in the current sprint. It should hopefully be available in 8.1.17.