Diagnostics
Problem
Clicking on a button that executes window.close after an IWCTrigger event in a case result in the agent remaining in use.
Solution
Here are the steps to address this issue:
- Create a variable (closeme) and place it on the form. Be sure visible is set to NO.
- Remove the winfom.close from the event.
- Add Compute Closeme = 'Y’ in the case performed by the IWCTrigger.
- Create a formOnLoad.js file.
- In the JavaScript file, test to see for the value of formname.Closeme_Edit.value =='Y'.
- If True, winform.close.
- Embed the JavaScript file on the form and add it to the Onload property of the form.
Now the form will close after it refreshes.