Anil's Blog is Best Viewed on GOOGLE CHROME

Sunday, April 5, 2009

How to call SRS Window in OAF

Controller PFR Code
import oracle.apps.fnd.framework.webui.OAUrl;

StringBuffer l_buffer = new StringBuffer();
StringBuffer l_buffer1 = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
l_buffer1.append("&akRegionApplicationId="+"0");
l_buffer1.append("&akRegionCode="+"FNDCPREQUESTVIEWPAGE");
l_buffer1.append("&retainAM=Y");
String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());

Thanks
--Anil

2 comments:

  1. No data being shown in my second page..why?

    ReplyDelete

Note: Only a member of this blog may post a comment.