Support Article

Button in repeat layout on refresh section has incorrect DOM ID

SA-11095

Summary



Checkboxes in repeating layout are meant to have incremental ID to make it distinct for actions applied on each row. However, when user applies an onClick > refresh this section, the ID does not recognize that it is in repeat layout. The ID that is given in the refresh is no longer distinct. This affects the triggering of CSS styling. User's screen design uses CSS3 hover and focus styles. After a button's onClick then refresh section, the CSS styling is only applied to the first element.
This was resolved in Pega 7.1.6 with HFix-10425. User requires an equivalent hotfix to be ported for Pega 7.1.8.


Error Messages



Not Applicable

Steps to Reproduce



There is no specific use case to reproduce this issue.

Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. The checkboxes and the respective label for ID attributes are not unique. When refresh section occurs, the dynamic repeat index from parent section is not passed to inner section. Inner section is not aware that the parent section is a repeat layout, so the index is not carried forward when generating the control's markup. 

Resolution



This issue is resolved after installing HFix-22475 and following the below steps:
  •  Open pzGenerateCheckBox function, navigate to java tab and perform a generate function. 
  •  Resave the sections where Check boxes are configured. 
  •  Log out and Log in again.

Published June 17, 2015 — Updated June 26, 2015


Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.