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 16, 2016 - Updated September 20, 2016

Have a question? Get answers now.

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