Close button on Review harness not working
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 MessagesAs mentioned above in fail scenario, it doesn't make server call and just reloads the case, instead of closing the case.
Steps to Reproduce1. 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 CauseComparing 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.
ResolutionPerform 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 June 6, 2017 - Updated July 20, 2017