Hi All,
We have a requirement to open a standard OAF page from a custom page upon click of the link and vise versa.
We are calling a Standard OAF page from one custom OAF page using java script.
From the custom page, when we click on a Project Number link, the standard page will get opened which has 5 to 6 tabs.
Once we open the standard screen it is getting opened, if we change the tabs and click on return button(Added through Personalization, its functionality is to close standard window using java script), the standard window gets closed, the content in the custom page(main VO) which was underlying the standard page is getting lost.
Could anyone please let me know how to retain the content of main page VO inspite of navigating to the other pages from the main page(upon change of tabs).
Code in the event of the Project Number link from the Controller of the custom page
if ("projectPage".equals(pageContext.getParameter(EVENT_PARAM))) {
HashMap hashmap = new HashMap();
String projectId = pageContext.getParameter("ProjectIdValue");
System.out.println("paProjectId value = " + projectId);
hashmap.put("paProjectId", projectId);
String url = (new StringBuilder()).append("OA.jsp?akRegionCode=PA_PROJECT_HOME_LAYOUT&akRegionApplicationId=275&addBreadCrumb=RS&retainAM=Y&paProjectId=").append (projectId).toString();
StringBuffer lp_buffer = new StringBuffer();
lp_buffer.append("javascript:mywin = openWindow(top, '");
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
lp_buffer.append(strUrl.toString());
lp_buffer.append("', null, {width:screen.width, height:screen.height,menubar:1,resizable:1,scrollbars:1,toolbar:1,status:1},false,'dialog',null);void(0)");
pageContext.putJavaScriptFunction("StandardProectsPage",lp_buffer.toString());
}