Setting a value in a parent window from a popup

It’s late and my brain’s not working so this may be a silly question - is there an easy way to open a popup from a parent window and make a selection on the popup that will set a value on the parent window?

Al

You need to do it in a script by finding the parent window by name via fpmi.gui.getWindow(name)