I tried using event.source.parent.getComponent in a client event script, but I get an error message that says ‘event’ is not defined.
Which event? And for those that do have
event, you can’t expect an
event.source to be there, as they don’t occur in any window context.
I’m using the keystroke client event. If F3 is pressed, for instance, it would set a component property.
You’ll have to use
.findWindows() to obtain the relevant window (handling the window-not-open case) and drilling down into its components via its
rootContainer. Client events don’t happen in a window or a component. They happen in the application at a global level.
If you want F3 to mean different things in different windows, you’ll have to code that into the one script.