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

Invisible window issue in WindowManager

SA-2791

Summary



Requirements:

We need to invoke some pages (e.g. Manage Offer Results) in INVISIBLE MODE i.e. no screens are displayed.

To do this we use chordiant OOTB method openWindow with the visibility parameter as false. But this one does not work.

Reason:

The windowmanager works when it reuses any unwanted closed windows.

However if it does not have any unwanted windows it has to create a new one using mdiwindow.js. When a new window is created it is not invisible. It is when a new window is created that the issue occurs.

Whenever an invisible window is created the OOTB file assigns the windowHidden property as "Boolean" in windowmanager.js but it is checked as string in mdiwindow.js. Therefore the condition fails and the showWindow instead of the hideWindow is called.

Examples:

windowmanager.js(OOTB file)
if( bVisible == false ) {
oWindowDiv.windowHidden = true;
}

mdiwindow.js(OOTB file)
if(ego.element.windowHidden != "true" )
ego.showWindow();
else
ego.hideWindow();

Error Messages



None


Steps to Reproduce



On a call, Support walked through the reported behavior on a desktop sharing session to view the issue where after opening a Window using openWindow function, the new window opened is still visible in background. The expected behavior is not to show the newly opened window.

Support understood that the customer was trying to open a new workflow using openWindow function while passing singleInstanceKey as ‘true’.


Root Cause



In Browser Agnostic setup, while opening window as invisible by passing parameter bVisible as false in openWindow function, the expected behavior is not to show the newly opened window. Here, the newly opened window is not hidden and is still visible in background. Opening a window as hidden is determined by the value of windowHidden attribute. This attribute is assigned Boolean value true instead of String value “true”. In non-Browser Agnostic setup, the invisible window functionality works as expected i.e. window is opened as hidden or invisible.


Resolution



This Hotfix-891 addresses the above issue by setting the value of windowHidden attribute as String “true” rather than a boolean true in windowmanager.js file.

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