You need to sign in to do that
Don't have an account?
t.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
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
ie: con.setpagesize(4);