on 12-05-2006 9:43 AM
Good morning,
One of the link of the toolbar opens in the same window of another, ¿what do I do so that open it in another different window?. The function in toolareaiview.jsp:
function openMisDatos()
{
<%if (!isPreview){%>
<%
String clpComponentName = profile.getProperty("ClpComponent");
componentURI.setContextName(clpComponentName);
String clpMisDatosURI = "/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fadmin.templates!2fiviews!2fcom.sap.portal.persoUserProfile";
%>
clpParameter = 'top=20,left=0,height=700,width=650,location=No,menubar=No,resizable=Yes,scrollbars=Yes,status=No,titlebar=Mis datos,toolbar=No,left=' + (screen.width / 3) + ',top=180' ;
clp_wnd = window.open( '<%=clpMisDatosURI%>', 'STATIC_CLP_WINDOW_TITLE', clpParameter);
clp_wnd.focus();
<%}%>
}
</script>
Thanks,
Mercedes
The function is:
function openMiespacio()
{
<%if (!isPreview){%>
<%
String clpComponentName = profile.getProperty("ClpComponent");
componentURI.setContextName(clpComponentName);
String clpEspacioURI = "/irj/servlet/prt/portal/prtroot/com.sap.portal.appdesigner.framework.Redirect?objectID=pcd%3Aportal_content%2Fcom.sap.pct%2Fadmin.templates%2Fiviews%2Feditors%2Fcom.sap.portal.defaultPreview¶ms=objectID%3Dpcd%253aportal_content%252fciviews%252fKM%252fZDL%252fzarc&";
%>
clpParameter = 'top=10,left=10,height=650,width=900,location=No,menubar=No,resizable=Yes,scrollbars=Yes,status=Tes,titlebar=Miespacio,toolbar=No,left=20,top=20' ;
clp_wnd = window.open( '<%=clpEspacioURI%>','STATIC_CLP_WINDOW_TITLE', clpParameter);
clp_wnd.focus();
<%}%>
}
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
not sure if I understand - you have 2 JS functions <i>openMisDatos()</i> and <i>openMiespacio()</i> which open in the same window? If so you should change in the <i>window.open</i> the window name to different (STATIC_CLP_WINDOW_TITLE and STATIC_CLP_WINDOW_TITLE2) - window.open opens a defined URL into a window with the name you define. If the window is opened, it just replaces the content with the new URL.
Hope this helps (If I understood you well)
Romano
Thanks!!!, Romano
It's correct!, the problem is solved
Mercedes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.