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
t.deepthi05t.deepthi05 

standard set controller

Hi All,

I am using StandardSetController.

public ApexPages.StandardSetController con { get; set; }

public ApexPages.StandardSetController refresh(){

if (con==null)
Con = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name v]));

}
return con;
}
public list<wraplist> wrap(){

List<V> vList = new List<V>();
 vList = (List<V>)con.getRecords();
system.debug(con.getResultSize()); // returns for size 4 
system.debug(vList.Size()); // returns 1

}

can i know why all the values are not added to the list
Phillip SouthernPhillip Southern
What happens if you set page size for "con"?
ie: con.setpagesize(4);
t.deepthi05t.deepthi05
Why we need  static value to be set if i have 10 values in the con.