Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  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>

Resolution



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 25, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us