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

Issue on Popup display while using IAC



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


Root Cause

User is not able to open flow in a popup on clicking button.


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);


            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 */



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("Location", actionURL.toQueryString());


    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);



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

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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