Support Article
Search with localized values is not working in filter functional
Summary
Search with localized values is not working in filter functionality of repeat grid
User scenario:-
1. A Repeat grid column is displayed using the localized value.
2. While using the filter functionality on the column, unique localized values are displayed as expected.
3. In the Filter pop over:
a. if user searches with a text that’s present in the localized value, we get no results and this was reported as an issue under this SR.
b. If user searches with a text that’s present in the corresponding clipboard value, user gets the result
Error Messages
Not Applicable
Steps to Reproduce
1. Add a Data Page in a repeat grid and populate data in Data Page.
Below is sample data of StudentDataPg.
ID Student Name Department
101 Name ComputerScience.
2. Create a field value rule for one of the column value for a row of Data Page. i.e Create a field value rule for "Name" as "LocalizedText"
3. Configure above created data page in a repeat grid and enable filtering.
4. Run the use-case to display content of repeat grid.
5. Click filter on "Student name" column.
6. In the filter pop-up, enter "LocalizedText" as search key.
7. Observe that the search result return null, as it's not able to find data with "LocalizedText"
Root Cause
A software use or operation error, it's an expected behaviour.
Resolution
Here’s the explanation for the reported behavior:
Providing localized value in filter popover search filed is not a correct use case. Filtering happens only on the value present in clipboard. Mechanism to retrieve original value from localized value is not yet present in pega. And implementing this mechanism would be too costly.
Though developer can implement below local change:-
Field value should be created in two classes, one in ABC-Data-TestDataPg class(with this localized value is shown in grid row) and second in Pega-ColumnFilterCriteria-UniqueValues-Text class(with this ocalized value is shown in filter popover). Now in row and in filter popover user will be able to see the same value and by selecting the checkbox filtering happens as expected.
Published November 22, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.