Why is field data-attribute-name localized in function GenerateCellContent in 7.2.1?
We just upgraded our development environment from 7.1.8 to 7.2.1 and the regression tester in our team ran his test with an external tool. He got stuck because the generated html field data-attribute-name is now localized. I analyzed the issue and found that the final function GenerateCellContent in Pega-UIEngine:07-10-25 now localizes the value for data-attribute-name, this was not the case in version 07-10-17. If the operator has an en_.. locale there is no issue but then the end user UI is not localized.
- Why was the value for data-attribute-name localized in this function? The value is not displayed and especially for regression tests you want to keep this field consistent independent of user's locale;
- Is there any hook to fix this issue? Adjusting all the scripts is a lot of work.
See fragment below of the generated html of the cell:
your response makes clear that it was changed and from the article I read it's now localized for mobile/Iphone display purposes. But as Pega can distinguish between mobile devices and desktops/laptops, and the data-attribute-name field is not used for display on the last ones, I don't understand why it's localized now. I could understand it when it would also be used for display on non-mobile devices.
The attribute data-attribute-name is generated only when a grid is marked as responsive (under the presentation tab) and is used to display the label configured in the header for the column. This is used for both desktop and mobile responsive modes. Since labels always need to be displayed in localized text, the attribute in now localized as part of a Hotfix. As such data-attribute-name attribute should not be used to identify the column.