Support Article

Interaction does not close when Save and Cancel are designed



Interaction does not close when Save and Cancel are configured on buttons in a menu.

Error Messages

Not Applicable

Steps to Reproduce

  1. Design Save and Cancel buttons in a menu navigation rule.
  2. Create a work object.
  3. 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="[[&quot;setUserStart&quot;,[&quot;SAVE&quot;]],[&quot;doSave&quot;,[false,&quot;:event&quot;,false]],[&quot;setUserStart&quot;,[&quot;CANCEL&quot;]],[&quot;doClose&quot;,[&quot;:event&quot;,null,null,false]]]"><span class="menu-item-title-wrap" data-click="."><span class="menu-item-title" data-click="..">Save</span></span></a></li>


Perform the following local-change:
  1. Upgrade the menu control.
  2. Change the pyMenuFlag to true.

Note: Use HTML 5 Application Readiness tool to change. A button will be displayed as shown below:

Published July 15, 2016 - Updated July 25, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.