You need to sign in to do that
Don't have an account?
reem sharawy
related opportunities with pagination
hi
I am trying to create a vf page to fetch related opportunities for specific account and to add pagination.
Whenever I try to save my code I get the below error:
Error: Compile Error: Method does not exist or incorrect signature: [ListPaginationBase].initializePagination(List<NewStockTransferExtension.materialWrapperList>, Integer)
I am trying to create a vf page to fetch related opportunities for specific account and to add pagination.
Whenever I try to save my code I get the below error:
Error: Compile Error: Method does not exist or incorrect signature: [ListPaginationBase].initializePagination(List<NewStockTransferExtension.materialWrapperList>, Integer)
public class NewStockTransferExtension{ public ListPaginationBase ConstructionOpportunityList {get; set;} public list<materialWrapperList> materialWrapperList{get;set;} public Account currentAccount {get; set;} public NewStockTransferExtension(ApexPages.StandardController controller) { ConstructionOpportunityList = new ListPaginationBase(); currentAccount = (Account) controller.getRecord(); ConstructionOpportunityList.initializePagination(materialWrapperList, 20); } public class materialWrapperList { public boolean checked{get;set;} Public Opportunity ConstructionOpportunityList {get;set;} public materialWrapperList(Opportunity ConstructionOpportunityList ){ this.ConstructionOpportunityList = ConstructionOpportunityList ; } } }
Use below updated Test class. you forget to call the standard controller constructor.
Hope this will help you,
Thanks
karthik
All Answers
Use Below code, if its not work try to post "ListPaginationBase" code for checking.
Hope this will help you.
mark it solved if its work for you.
Thanks
karthik
Thanks
karthik
I worte the below helper class and it is working perfetly, but I have an issue with the deployment because of the test class
test class
please help
Use below updated Test class. you forget to call the standard controller constructor.
Hope this will help you,
Thanks
karthik