/ Published in: Java
Sample code from processFormRequest to pop up new window via javascript. worth noting: this is not recommended as it can break the OAF page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
l_buffer.append("javascript:mywin = openWindow(top, '"); l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG"); l_buffer1.append("&retainAM=Y"); l_buffer1.append("&pubOrderId="+pubOrderId); OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE ); l_buffer.append(strUrl.toString()); l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);"); pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());