Get open views in designer context

I've been digging through the SDK trying to find how to get all the open views in the perspective workspace and have come up short, what I'd like to do is get the ViewConfig and then be able to change the persistence and access mode to private, is this possible to do?

In addition is it possible to modify view params(set them/clear them)?

It's probably possible, through some level of skullduggery, but definitely not in any remotely supported/anticipated fashion.

What's the thing you're ultimately trying to do?

So we have developed a design style of keeping our custom props on views non-persistent and private for version control purposes, similarly we keep our params "" or null so that way when views startup in production we aren't loading any saved values in the designer as a way to prevent view thrashing. Having the view params not set at all makes troubleshooting issues very annoying so I was thinking of adding buttons to the toolbar to set your view params, and a button to clear them and change custom prop persistence and access mode, while saving any params to a json file for use next time. Right now we have a script that can modify all the view.json files and do this but it's either all views or none and when you're in a version controlled environment that shows as bunch of changes rather than what you actually changed.

Another way I was thinking was doing an RPC call to the gateway and modifying the view.json there but it would still require knowing what views were open. If this is just a bad idea all together let me know I was just seeing if there is a feasible way to do it.

Anything I can think of would be very hard to do from a third party module; it really would belong as something controlled by the resource editor/resource workspace. Again, possible to work around, but not pleasant.

1 Like