Select List & Pop-up Page
523559Jul 17 2006 — edited Jul 18 2006Hey everyone...
I am having some trouble with passing values to and from a pop-up window. When running the application the user must select a value from a select list (which appears in every row of a query report), then another page must pop-up displaying another query report. The user then select a row from that report and the window closes, returning the values of that row.
I am able to do everything, including returning the values to the original page, except for sending values to the pop-up itself. I need to send the pirmary key value to the pop-up.
The select list is a query based LOV. In the element attributes field I have:
onchange="triggerPopUp('#TABLE_PK#');"
The syntax for triggerPopUp is the following:
<script language="JavaScript" type="text/javascript">
function onceYouPopYouJustCantStop(table_pk) {
var sendpk = table_pk;
var url;
url = 'f?p=&APP_ID.:30:&APP_SESSION.::::PK_30:'+sendpk;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=320,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
}
</script>
The window pops up, but the value of TABLE_PK is not recognized. If the function call is used in the URL for a column link it works perfectly, but I need it to happen after the select list is changed...
any help would be great...