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

Access denied error when opening rule

SA-2155

Summary



User is opening a pop-up window through Java Script. An error is encountered when users try to access the pop-up window attributes such as Name. 

Error Messages



Access Denied:

Line: 1
Char: 724
Code: 0
URI: https://your_host:7022/prweb/PRServlet/7MKqLJT3C85Q9O-nUMEG9s4HS0fXccEc*/webwb/popupwindowmanager_1954511266.js!globaldma_12528960149.js!pega_cpm_dialogmanager_11106447866.js!pega_cpm_callchatdialog_13090850519.js!pega_cpm_menuactions_12043312903.js!pega_cti_calleventhandler_13215308619.js!!.js


Steps to Reproduce



Try to open the content of an activity in pop-up through window.open and then close it programmatically.


Root Cause



Window.open  is being used in javascript code.

Resolution



Use openUrlInWindow API, instead of window.open

For example:

var strUrl = "pyActivity=Data-Admin-ServicePackage.ShowVisualization&insHandle=DATA-ADMIN-SERVICEPACKAGE "+cusPackage.toUpperCase();
var nHeight = 600;
var nWidth = 800;
var nTop = (window.screen.height / 2) - (nHeight / 2);
var nLeft = (window.screen.width / 2) - (nWidth / 2);
var strDimensions = "height=" + nHeight + ",width=" + nWidth + ",top=" + nTop + ",left=" + nLeft;
var strFeatures = "menubar=no,location=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,resizable=yes," + strDimensions;
openUrlInWindow(strUrl, "PackageView", strFeatures);

Also use as below for activity call:

var oSafeURL = SafeURL_createFromURL(pega.u.d.url);
oSafeURL.put('pyActivity', 'PegaSample.pySendSimpleEmail');


 
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

0% found this useful

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