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

Close button on Review harness not working

SA-38981

Summary



Developer uses standard functionality of case creation manually from portal left pane.

First it shows New harness, OnClick of Create it calls an activity to create the case, finally calls Show-Harness with param.purpose=Review and param.ReadOnly=true, which shows Review harness with multiple icons on right top corner of the case.

Immediately after the case created, when user clicks Close button, it does not close the case, instead case is reloading, but it does not make any server call and is not calling DoClose activity.

It is observed that it is calling closeWork(event) js function in pega_ui_doc.js, but does not call actual DoClose activity.

But it works fine if the case is opened from find gadget or Recent gadget, close button works fine.

Application used: SmartInvestigate 06.01.02 and pega_ui_doc.js is of Pega-UIEngine:06-01-25


Error Messages



As mentioned above in fail scenario, it doesn't make server call and just reloads the case, instead of closing the case.


Steps to Reproduce



1. From Portal left pane, start manual case which shows New harness.
2. Click create, which calls custom activity to create the case and this activity has Show-Harness with param.purpose=Review and param.ReadOnly=true, which shows newly created case in Review harness.
3. Click Close button. It doesn't close the case rather it reloads the case, also doesn't call DoClose activity.

Note: If the case is opened through Find ID gadget or Recent gadget, if user clicks close it closes the case and also calls DoClose activity


Root Cause



Comparing the working and non-working tracer, in the non-working scenario after calling RULE-HTML-HARNESS Review > Calls ShowHarness > RULE-OBJ-ACTIVITY MANUAL CREATEMANUALCASE is called.

Whereas in working scenario, RULE-HTML-HARNESS REVIEW > Calls ShowHarness > Work-Open

Compare the use case(flow) for case creation and case search.

Resolution



Perform the following local-change:

Instead of using standard harness header icons CLOSE and UPDATE, use Type=CUSTOM and DoAction = DoClose / DoUpdate with Current window and No Data Submission = true.

Published July 20, 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