Support Article
Interaction is not closing with compatibilty
SA-25662
Summary
Interaction is not getting closed when compatibility setting are On.
Error Messages
Not Applicable.
Steps to Reproduce
1. Configure a Save or Cancel in a button in a menu.
2. Create one work object.
3. Click on Save or Cancel Button.
Root Cause
Upon verifying the generated markup for the Menu, it is found that for data-click attribute values were not getting generated.
Markup for reference.
<tr id="/contextMenu/ID1468231949218000" orientation="vertical" class="menuItem selected" aria-selected="true"><td id="ItemLeft" class="leftEdge" data-ctl="navigation" data-click="[,]"> </td><td id="ItemMiddle" tabindex="0" role="menuitem" class="middleBack" data-ctl="navigation" data-click="[,]">Save</td><td id="ItemRight" class="rightEdge" data-ctl="navigation" data-click="[,]"> </td></tr>
One can see that the click events are not getting generated.
On creating new menus without compatibility mode, data-click attribute values were generated.
<li class="menu-item menu-item-enabled" role="presentation">
<a href="#" onclick="pd(event);" class="menu-item-anchor " tabindex="-1" role="menuitem" data-ctl="" data-click="[["setUserStart",["SAVE"]],["doSave",[false,":event",false]],["setUserStart",["CANCEL"]],["doClose",[":event",null,null,false]]]"><span class="menu-item-title-wrap" data-click="."><span class="menu-item-title" data-click="..">Save</span></span></a></li>
Resolution
Here’s the explanation for the reported behavior:
Pega Platform 7.x does not support compatibility mode. In this case when compatibility mode is on system is using the old Menu control and the reported issue occurs.
User is suggested to remove the compatibility mode.
Published July 26, 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.