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

pzModalButton not executing Data transform before submit

SA-27046

Summary



As per requirement user need to configure Modal dialog on add item for a repeat grid and when user clicked on add item display multiple submit buttons, for example, one for Create and another for Update.
User called the flow action on the repeat grid modal dialog logic. User have customized pyGridModalTemplate to display requirement specific buttons.
User has configured pzModalButton - submit even with actions refresh section called Data transform.
Issue: system not executing data transform or activity before calling submit event on modal dialog


Error Messages



system not executing data transform or activity before calling submit event on modal dialog.
Since pzmodalButton not working for this scenario, User have used normal button but its failing to show mandatory validations.
.


Steps to Reproduce

  1. Create a repeat grid from the page list property.
  2. In the operation tab select master-details in row editing and provide the detail flow action.
  3. In the detail flow action call the section where the pzmodalbutton is present, and configure the data transform in action tab and call the data transform to set value.
  4. Observe that the Data transform or activity is called at run time.

Root Cause



An issue in the custom application code or rule where user needs a suggestion or input in implementation of pzmodalbutton.

Resolution



The below local change was provided to customer:

In the presentation tab of pzmodalbutton, provide " " in action and " " onclick and in action tab set on click event and call the data transfer or activity.

User can also try the below local-change:


Instead of using pzModalButton (which is an old and internal control) one should use standard auto-generated pxButton control.

Then user can configure two actions on that - one Run data transform, followed by a Run script.

User can configure the Run script action to call the following JavaScript function which user can add in the UserWorkForm or any JS file they are including in their harness:

<script> 
function cancelGridModal(event){ 
pega.u.d.activeGrid.submitModal(event); 

</script> 
 

Published September 1, 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