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

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

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