Support Article
Issue on Popup display while using IAC
SA-3930
Summary
In IAC configuration the user has configured it in such a way that when they click on create a new tab should be opened to enter further details. However this behavior is not happening either in IAC preview or in the actual portal.
Steps to Reproduce
NA
Root Cause
User is not able to open flow in a popup on clicking button.
Resolution
This issue is resolved through the following local change:
Call the method displayNewFlowWindow in the below code snippet by configuring on click Run script event on the button.
Code snippet :
<script language="javascript">
var strRequestorURIformFlows = "<pega:reference name="pxThread.pxReqURI" mode="normal" />";
function displayNewFlowWindow()
{
var flowName = "StartGcsTest"; /*Flow name to be run */
flowClass = "GcsTest-Work-GcsTest"; /* Class name where flow exists */
flowParams = "";
usingPage = '';
var actionURL = SafeURL_createFromURL(pega.u.d.url);
actionURL.put("pyActivity","@baseclass.doUIAction");
if (flowName && flowName != '') {
actionURL.put("flowName",flowName );
if (flowClass && flowClass != '') {
actionURL.put("className",flowClass );
}
}
actionURL.put("harnessName","New"); /* Harness name */
actionURL.put("HarnessPurpose","Perform");/* Harness purpose */
actionURL.put("pzPrimaryPage","pyWorkPage");
actionURL.put("action","createNewWork");
var threadName = "TestThread"; /* Name of thread to be created */
var pages = "pyWorkPage";
if(usingPage != ""){
pages = usingPage;
}
var safeURL = SafeURL_createFromURL(pega.u.d.url);
safeURL.put("pyActivity","pzPerformFlow");
safeURL.put("ThreadName",threadName);
safeURL.put("Location", actionURL.toQueryString());
safeURL.put("PagesToCopy",pages);
safeURL.put("UsingPage", "");
var nHeight = 330; /* Height of the popup window */
var nWidth = 625; /* Width of the popup window */
var nTop = (window.screen.height / 2) - (nHeight / 2);
var nLeft = (window.screen.width / 2) - (nWidth / 2);
var strFeatures = "left="+nLeft+",top="+nTop+",height="+nHeight+",width="+nWidth;
openUrlInWindow(safeURL.toQueryString(),"","status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes " + strFeatures);
}
</script>
User customized the code for their flow and confirmed that flow is opening in new popup window.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.