open popup window and passing parameter to the popup
708647Jun 26 2009 — edited Jun 26 2009Hi, I want to open a popup whenever a button is pressed (the page number is 10)
my first attempt was to make a process which have a button condition (after submit)
BEGIN
htp.p('<script type="javascript/text">');
htp.p('javascript:popupURL(
"f?p=&APP_ID:12:&APP_SESSION.::NO::P12_PERSON::PERSON_ID")');
htp.p('</script>');
END;
I want to pass the value
from
page 10 item :PERSON_ID (initial page)
to
page 12 item :P12_PERSON (this is the popup page)
I also made a branch for the button which redirect to page 10, since no button can be left without any branch or redirect.
the problem is, I dont see any popup was opened. Is there something wrong on my syntax?
thanks for your attention, I appreciate any suggestion
danny