Object has no attribute 'getComponent' in actionPerform script

Hi guys

I am current working on a button that has a script as shown below . I am just wondering is it possible to use getComponent from onActionPerformed event ?

many thanks
image

in perspective, there is no ‘getComponent ()’. use .getChildren ()

https://docs.inductiveautomation.com/display/DOC80/Perspective+Component+Methods

1 Like

thank you so much !
it works