You need to sign in to do that
Don't have an account?

pagination on history object
Hi,
Is it possible to pagination on field tracking historyobject am using standard set controller but am getting this visualforce error
"List controllers are not supported for Product_Table__History"
my standard set controller
public ApexPages.StandardSetController fiopagnation
{
get {
if(fiopagnation== null) {
fiopagnation= new ApexPages.StandardSetController(Database.getQueryLocator([Select ID,createddate,parentid,CreatedById,CreatedBy.Name,Field, OldValue, NewValue from Product_Table__History where parentid=:productid ORDER BY CreatedDate DESC]));
// sets the number of records in each page set
fiopagnation.setPageSize(20);
}
return fiopagnation;
}
set;
}
public list<Product_Table__History> categories=new list<Product_Table__History>();
public List<Product_Table__History> getCategories()
{
categories = new List<Product_Table__History>();
for (Product_Table__History category : (List<Product_Table__History>)fiopagnation.getRecords())
categories.add(category);
return categories;
}
Is it possible to set pagination for history object adding wraper class?
Thank you