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

CloseWork method is closing browser when launched from snapstart

SA-42100

Summary



In new harness, there are Discard/Cancel buttons which has the script ""pega.u.d.closeWork" configured.

While working on portal, it is closing corresponding workobject/thread. But if the portal is launched from mobilesnapstart url, it is closing the browser tab.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure the Discard/Cancel button as below:


2. Click on this button for a case in a snapstart URL.


Root Cause



The configuration is supported only when '!pxIsPortalSingleDocument || pzIsPegaMobileSDK'


This is used in the context which is not supported. And the visibility condition is relaxed which is not supported, i.e in a single document mode portal (snapstart URL)




Resolution



After placing the Visibility(When condition), it is working as designed.

Published August 9, 2017 - 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