Writing from Extension Function

Hi guys, this is probably quite a straight forward answer but i cannot seem to find a suitable explanation. I would like to write to a label object from an alarmstatus table but i do not know how to call the component, a normal script would recognise event.source.parent etc but this does not. Any help would be appreciated

In an extension function, use self where an event would use event.source.