Support Article
There is an error message after refresh window
SA-1511
SUMMARY
When user opens two cases in two different windows then save the two cases simeltaneously in order, Refresh the first window and then edit the section in first window, there is a java script error message pop-up
ERROR MESSAGES
User get's undefined java script error while trying to refresh window..
STEPS TO REPRODUCE
When open two cases in different windows
1. click save button in window1 first
2. click save button in window2 at last
3. refresh window1
4. edit section in window1. there is an error message pop-up.
ROOT CAUSE
For refresh button onclick event we see that window.location.reload function was not working properly hence we substituted it with pega.u.d.submitWhenFail and in logs we see transaction ID mismatch.
RESOLUTION
1.Open Work- pyWorkToolbar section.
2.Go to cell properties for BOTH refresh buttons
3.Click on the lens icon next to control.
4.Open the Click behaviour and change function Name from "window.location.reload" to "pega.u.d.submitWhenFail"
When user opens two cases in two different windows then save the two cases simeltaneously in order, Refresh the first window and then edit the section in first window, there is a java script error message pop-up
ERROR MESSAGES
User get's undefined java script error while trying to refresh window..
STEPS TO REPRODUCE
When open two cases in different windows
1. click save button in window1 first
2. click save button in window2 at last
3. refresh window1
4. edit section in window1. there is an error message pop-up.
ROOT CAUSE
For refresh button onclick event we see that window.location.reload function was not working properly hence we substituted it with pega.u.d.submitWhenFail and in logs we see transaction ID mismatch.
RESOLUTION
1.Open Work- pyWorkToolbar section.
2.Go to cell properties for BOTH refresh buttons
3.Click on the lens icon next to control.
4.Open the Click behaviour and change function Name from "window.location.reload" to "pega.u.d.submitWhenFail"
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.