Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select List & Pop-up Page

523559Jul 17 2006 — edited Jul 18 2006
Hey 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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2006
Added on Jul 17 2006
4 comments
354 views