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

Clicking button with Visible When freezes the screen

SA-22578

Summary



Clicking any button having Visible When or an icon, a gear icon against any layout property for example, freezes the screen.

The issue is replicable only while accessing the application on Chrome and the locale is set to tr_TR. Everything works as expected if Chrome or Turkish locale is not used.

Error Messages



Not Applicable

Steps to Reproduce



1. Create a section and use a button to perform refresh section, or enable or disable some content of the screen.
2. Change operator locale to tr_TR.
3. Run the test case.

Root Cause



A defect in Pegasystems’ code or rules:

The issue is with JavaScript toLowerCase() function.

var newStream = "İstanbul"; //newStream.length is 8
var lowerCaseNewStream = newStream.toLowerCase(); //lowerCaseNewStream.length is 9 though it has only 8 lowercase characters

Using lowercase in pzpega_ui_changetracker results in wrong length, thereby passing invalid data to JSON Parsing and the UI does not render.


pega.ui.ChangeTracker.prototype.parseForChangeTrackerDiv = function(newStream, declareExpression) {  var ctJSON; 
var searchStartsAt = 0; 
if(!declareExpression) { 
var lowerCaseNewStream = newStream.toLowerCase(); 


The solution for this would be to change toLowerCase to toUpperCase and get the start and end div tag length in the above JavaScript function.


The solution checks for browser (Chrome or not) used and based on that, it replaces selective characters (turkish - İIŞĞÜÇÖ) using a regex. 
Letters replaced are { "İ": "i", "Ş": "ş", "Ğ": "ğ", "Ü": "ü", "Ö": "ö", "Ç": "ç" };

Resolution



Apply HFix-27285.

Published May 13, 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