Getting value from Child value but parent window should not

I have a window in which I have a text field followed by a add button.
when I click on add button a window will open up. and I will add some
data to the child window and when I enter , the entered data should go
to a field in parent window.

When the child window is open I should be able to enter datas in Parent
window.

How to do that