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

LocalAction ModalDialog not working in repeating grid action top

SA-28049

Summary



Button is configured to launch a ModalDialog in repeating grid action-top, but does not work.
It throws an alert message "Please select a row" instead.


Error Messages



An alert message 'Please select a row' gets displayed.


Steps to Reproduce

  1. Place a repeat-grid in section(Section1) rule.
  2. Place a button inside another section(Section2) rule.
  3. Configure Local Action >Modal Dialog on the button event.
  4. Drag the section(Section2) with button into the Repeat Grid Action-top.
  5. Click the button during execution.


Root Cause



A defect in Pegasystems’ code or rules. 

The "_processActionModalOnlineHandler" API in pega_ui_modadialog. js has the code which traverses from the currentDOMElement till the RULE_KEY / MAIN_RULE and if it's find a DOMelement with className "gridactionTop" or "gridActionBottom" in between, it'll set the this.activeGrid = null and therefore later in this functionor API it does not throw the "Please select a row" alert. 

But in this case the section has the button(CurrentDOMElement) which itself is included in the gridactiontop.

​So with the above code, even though the button is present in gridactiontop, the "bIsControlInGridActionArea never becomes true. Hence the issue. 


Resolution



Apply HFix-29500.

 

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