I’m working on troubleshooting something and I thought it’d be pretty cool to get all custom properties of all windows open, maybe go deeper to templates/template properties, etc so I can poll them periodically and get their values. Any way to do this easily?
Also while I’m at it, any way to get the binding for a given property?
Thanks!
EDIT: Looks like I should have done some more research before posting - looks like .getProperties() will do for the basic things I want, though I’d still like to know if someone can tell me how to get the actual binding information (like expression text, sql text, etc).
Start here, look at the getInteractionController() method, and continue down the rabbit hole. (-:
You should note that bindings are not part of the component, but are part of the window. For generic components, they are established on window open. For template elements, they are created and destroyed as templates are selected and deselected in the various holders. (But still as objects of the window.)
Also note that while documented for module developers, these APIs are very much not supported nor guaranteed to hang around.
There might be a better way to do this, but by messing around I found that I could create a parameters dictionary from a window with the following code: