I am looking for a way to reference the current container so I can dynamically get some datasets from the current containers chart.
I have looked at getSibling which does exactly what I want but I am working in the script module and I don’t believe you can use this function because it requires an event object. This script runs on a time interval and is not activated by an event…
Here’s what I have ended up doing:
domain = system.gui.getWindow('ProjectStatus').getRootContainer().getComponent(container)
irrTbl = domain.getComponent('Chart').Irr
where ‘container’ is a variable passed in to the function that is the name of the current container I want to get dataset from.