Support Article
Sorting is not working when using filtering and pagination forRD
SA-9720
Summary
When using filtering on report and appylying pagination then sorting. Results are not displaying correctly.
The Error is "no results found"
Error Messages
NA
Steps to Reproduce
Step1: Create Report definition with sorting,Pagination and filtering.
Step2: Filter the result for a specific input and should get 5 pages list to display.
Step3: Click on 4 th page.
Step4: Come filter and filter with other input and should get 1/2/3/4(it should get less than 5 pages) pages list.
Step5: now click on sorting on any column.
Step6: It will show no results found
Root Cause
When the user is on 3rd page and applies a filter and now results may fit in one page but when he is sorting on any field
Still the page index is 3 so it says no matching data was found
Resolution
On clicking of Apply changes button calling a Run Script function "resetPageIndex" which will set page index to 1
Published June 12, 2015 - 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.