Support Article
Interaction does not close when Save and Cancel are designed
SA-25666
Summary
Interaction does not close when Save and Cancel are configured on buttons in a menu.
Error Messages
Not Applicable
Steps to Reproduce
- Design Save and Cancel buttons in a menu navigation rule.
- Create a work object.
- Click Save or Cancel.
Root Cause
Data-click attribute values were not generated.
The non-working markup is given below 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>
When the reference system where it worked was cross checked, data-click events were generated.
The markup given below appears when new menus in reference system were created. Data-click attribute has values.
<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
Perform the following local-change:
- Upgrade the menu control.
- Change the pyMenuFlag to true.
Note: Use HTML 5 Application Readiness tool to change. A button will be displayed as shown below:
Published July 25, 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.