Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to Switch the portal from CPM CSR portal

SA-673

Summary



User is trying to select a portal using operator->switch portal on the top right corner of the portal. But the portal is not getting changed.

Error Messages



No error message is displayed


Steps to Reproduce



1.Launch CPM CSR portal
2.Select Switch portal from operator menu at top riight end of the screen
3.click on the portal that you want to navigate
4.System is not able to switch the portal.


Root Cause



User was using OOB navigation rule called pycasemanager, in which we have an item as change portal, that in turn calls a JS functiona called changePortal, somehow that was not working, as they were calling that through CPM portal.

Resolution



Following custom function was given and called instead of changePortal function, rest was same as it was defined in the item for pycasemanager navigation rule.
Also the parameter passed to the function: 
1) this
2) .pyPortalLayout


function changeMyPortal(event,strNewPortal){
var gCurrentPortal = '<pega:reference name="pxThread.pxPortal" mode="normal"/>';
if (strNewPortal != gCurrentPortal) {
var strConfirmMsg = "Leave this page and moce to '"+trim(strNewPortal)+"' ?";
if (confirm(strConfirmMsg)) {
var strURL = '<%=tools.findPage("pxRequestor").getString("pxReqHomeURI")%>'+ "/!STANDARD?pyActivity=Embed-PortalLayout.RedirectAndRun&ThreadName=OpenPortal&Location=pyActivity%3DData-Portal.ShowSelectedPortal%26portal%3D"+strNewPortal+"%26Name%3D%20"+strNewPortal+"%26SkinPreviewName%3D%26developer%3Dfalse%26ThreadName%3DOpenPortal";

window.location= strURL ;

}

}
}


 
Suggest Edit

Published September 3, 2014 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us