Question

3
Replies
357
Views
Dat Thanh Diep (DatThanhDiep)
CIBC

CIBC
CA
DatThanhDiep Member since 2016 16 posts
CIBC
Posted: July 30, 2018
Last activity: July 31, 2018
Posted: 30 Jul 2018 15:25 EDT
Last activity: 31 Jul 2018 15:47 EDT
Closed

Javascript showHarnessWrapper function does not work propertly

Hi All,

I have a requirement to launch an additional harness whenever users login to the application. I have tried to call showHarnessWrapper whenever the page is loaded. I have used the below code.

pega.desktop.showHarnessWrapper('newDocument','Data-Admin-WorkGroup','pyTeamDashboard','','','','My Teams','','false','','false','','','','true','true' );

The problem is it shows the harness in a new popup instead of populating the harness in the same windows. However, I have tried to implement a button to test my script. When I click that button, it runs the exactly same script and the script works the way I want.

Can you please explain why the script does not work properly when it is not called by clicking button? Moreover, is there any other way to achieve my requirement?

I appreciate any help you can provide.

Thanks,

Dat

***Edited by Moderator Marissa to update platform capability tags***

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