cancel
Showing results for 
Search instead for 
Did you mean: 

Link in toolbar

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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&params=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>

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks!!!, Romano

It's correct!, the problem is solved

Mercedes