Pass data from main screen to a pop-up dialog window

SOLVED

I have a pop up dialog window which shows when the user clicks on a menu item on the left.

How can I pass data from this source screen into the pop-up window?

When I add code to the window i.e. DEBUT etc nothing happens on the pop-up?