Discussion

1
Replies
2733
Views
Close popover
Maiti Soumen (SOUMENMAITI)
EY
PEGA LEAD SYSTEM ARCHITECT
EY
US
SOUMENMAITI Member since 2010 16 posts
EY
Posted: April 24, 2015
Last activity: April 27, 2015
Closed

How to Close an default tab (like "Home") after Opening one work item tab using java script

we have an IAC requirement where we are openning a work item in tab using a js.

so what we used a harness  A  and a section B inside that A harness.

Then inside the section B we put a workarea control in workarea control configuration we put tabbed to yes and provide id .Then Put Open By Default row where we mentioned a harness name C.

Then refer the harness A in IAC.

Then in Harness C containg a section D and the section D is containing the java script which is opening a work item in a new tab apart from the home tab which is mentioned in the work area configuration tab.

So currentl we have 2 tab one for default Home tab another is workitem item so now after loading of the workitem tab i want to close the home tab from the js code in section D.

Code inside the section D

function openWorkObjectIAC(){
var a=pega.desktop.getCurrentSpaceName();
alert(a);
pega.u.d.setLabel("Test123456789test233");
//i want to place my code here to close the existing home tab after loading of the workitem in a new tab
pega.desktop.support.closeGadget();
   var customAppWindow = null;

   customAppWindow = pega.desktop.support.getDesktopWindow();
alert(customAppWindow);

   if (customAppWindow != null){

     if (typeof customAppWindow.openWorkInPRPCWorkArea == 'function'){

        customAppWindow.openWorkInPRPCWorkArea();

     }

   }

}

 

</script>

It will be very helpful if any body have any solutions and other thoughts.

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.