function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GoForceGoGoForceGo 

getCompleteResult not working on standardSetController

I am trying to filter out list views that have more than 10K records.

 

When I ask setController.getCompleteResult(), it returns true. However, when I cycle through the records (using  a while loop with getRecords(), .next(), and getHasNext()), I count till 10K and then it exits the loop! So there are more than 10K records in the set.

 

 

 

 

 

 

GoForceGoGoForceGo

I just worked around it by using getResultSize() < 10K. Of course if results size is exactly 10K, this doesn't work!