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

List controllers are not supported for OpportunityLineItem



Am trying to do pagination for opportunityLineItems...i used the Query 


 public ApexPages.StandardSetController ssc {get; set;}


ssc = new ApexPages.StandardsetController(Database.getQueryLocator([select id,unitprice,PricebookEntry.Product2Id,product__c,PricebookEntry.Product2.Name,Opportunity.Product__r.Id,Product__r.Name,,Purchase__c, PricebookEntryId,ServiceDate,Quantity,Action__c,Vendor__r.Name ,Opportunity.Name,Opportunity.StageName
from OpportunityLineItem where opportunityid!=: and product__c=:userinput.product__c order by unitprice limit 100]));


its getting saved...during execution am getting an error as : 


List controllers are not supported for OpportunityLineItem 


Can any one suggest an alternate way of using custom pagination..


Thanks in Advance..