Modal popup form

I have a button on a form that needs to show another popup modal form, where ther user must enter some info on fields from the same datasource as the main form.

I created this popup form, extends the main form,

when I click on the button, the form shows and is modal, allows to enter info, but doesnt save or anything,
as you move off the fields it shows nothing

any ideas?

the code for the on action of the button is

	var win = application.createWindow("tmprovp1_inc_dtl", JSWindow.MODAL_DIALOG); win.show("tmprovp1_inc_dtl"); 
	controller.getWindow().destroy();

Do you try to use the Lookup window?

isn’t the lookup window for search?

what I am trying to do is
I have one field showing on the main form, but that amount is made up of 3 different amounts, not to be shown on the main window, only to be edited when you click on the button
hope this explains it more

Yes one function of the lookup windows i for search, but other function is for edit/add/delete records, you can find this in the oficial documentation

download/file.php?id=3967

Thanks

that works just great