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

Browser does not work when using the Tab function

SA-41224

Summary



​After upgrading to Pega 7.1.9, when using the Tab function to enter the field values for a Repeat grid on screen, it does not pick up the row but picks up the header label columns for the grid.


Error Messages

Not Applicable


Steps to Reproduce

1. Create a section containing a Repeat grid. Place an input text box before the grid
2. Click in the input field outside the Repeat grid at run time
3. Press the Tab key


Root Cause

The reported behavior is due to new design changes introduced with Pega 7.
The 'th' tags associated with the grid column headers are linked to a tabindex attribute. When the Tab key is pressed from outside the grid, the captions or header names are selected first instead of the input fields of the grid row.



Resolution

Create a non-auto generated section, in the required screen, and include the below code in it.

<script>

var eles = document.getElementsByTagName("th");
var headerBarElems = document.getElementsByClassName("header header-bar test clearfix");
var headerCollapsibleElems = document.getElementsByClassName("header header-bar clearfix");

var k=0;var j=0;var i=0;
for(i;i<eles.length;i++ )
{
if(eles[i].getAttribute("pycelltype")=="static")

eles[i].setAttribute("tabindex", "-1");
}
if(j!= undefined || j !=null)
if(headerBarElems.length>0){
for(j;j<headerBarElems.length;j++){
headerBarElems[j].setAttribute("tabindex", "-1");
}
}

if(k!= undefined || k!=null)
if(headerCollapsibleElems.length>0){
for(k;k<headerCollapsibleElems.length;k++){
headerCollapsibleElems[k].setAttribute("tabindex", "-1");
}
}
</script>




Suggest Edit

Published September 22, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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