Support Article
HandleClienEvent not functioning as expected in IE11
SA-19569
Summary
User has designed HandleClienEvent function for a OnClick Event by supplying the eventType as Server, which refreshes the current section.
However refresh is not happening and an error has been thrown. In the tracer the BaseReference is null in non-working scenario.
Error Messages
UI: "Application has encountered an error.Please contact system administrator."

In Tracer : ” Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'ABC' that applies to 'ABC-XYZ'.
There were two rules with this name in the rulebase, but none matched this request. The two rules named 'ABC' defined in the rulebase are: 2 unrelated to applies-to class 'ABC-XYZ', for example: 'CDE-PQR.”
Steps to Reproduce
1) Use HandleClienEvent for an onclick event.
2) Mention eventType as SERVER.
3)Observe that Refresh does not happen throws an error.
Root Cause
An issue in the custom application code or rules : Developers have injected APIs like getElementById into HTMLElement. This makes every element to inherit these APIs. Finding the base ref while refreshing the section fails due to this. findParentNamed API has code to stop dom traversal if the element has getElementById :
while (parent && !parent.getElementById) {
Resolution
Removing getElementById injection from the userscode, fixes the problem.
Published February 12, 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.