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
Varun99Varun99 

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