Hi! I am creating a script to get a component on a popup.
window = system.gui.getWindow('Dashboard/Pop-ups/KWH Consumption') event.source.getComponent('Bar Chart').data = window.getRootContainer().datasetForGraphing
But when there are multiple instances of the popups are open the script still references to the first pop up. I tried searching this forum for an answer and I saw that every popup window or any open window has a unique hash. I can print the hash using this code:
How can I use the hash code to get a component on a popup instance similar to system.gui.getWindow? Is there a better way to get components on multiple popup instances?