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

Open child Work Objects in separate Pega thread in IAC



As part of the IAC implementation, User has to display work object (Review/Perform modes) in a div on a portal. From the perform mode, user can navigate to the child workobjects, which is rendered in a pop up. Until now the IAC invocation from the portal has not happened, so user has the HTML code from which IAC gadget was launched. During functionality testing when user takes an action on the child and upon returning to the parent, an error occurs when trying to take any action (call a flowaction) on the parent.

Error message:

Unable to display HTML for this action

Show Error

** Unhandled exception executing JSP: Index: 2, Size: 0

The above issue does not happen if the child is accessed from a parent opened in Review mode.


Below solution is based on workarea control.

1. Host Application loads harness with simple workarea
2. PRPC loads WorkArea and when loaded, calls back to host application 
3. Host application triggers load of work object

JS function in Host application that triggers load of work object is as below:

/*Handle the host providing what work object to open, no need to pass in as a parameter*/
var loadedWork = false;
function openWorkInPRPCWorkArea(){
      if (!loadedWork) {
         //caseID here should be dynamic.
         setTimeout(function(){document.WorkCaseIfr.openWorkByHandle("PEGASAMPLE W-61", 1)}, 1000);

Event listener in Pega application that calls JS that is in host application.

function openWorkObjectIAC(){
   var customAppWindow = null;
   customAppWindow =;
   if (customAppWindow != null){
     if (typeof customAppWindow.openWorkInPRPCWorkArea == 'function'){

Published June 12, 2015 - 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