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
PronowPronow 

Can we use wrapper class object list in StandardSetController

Hello guys,

 

I am trying to prepare a combined list of custom objects. For that I have created a wrapper class.

 

I want to display records in that wrapper class object on VF page using all pagincation functions that StandardSetController provides.

 

As I am trying to call StandardSetController its gives error. The Code is:

 

standardSetRelatedNPOs = new ApexPages.StandardSetController(lstNPOSchoolWrapper);

 

The error:

 

Constructor not defined.

 

Shall I need to create Custom Set Controller or something else. If yes, then how? Please help.

 

Thanks in advance.

AmulAmul
you cant use wrapper but offcourse you can add list<Sobject> to standardsetcontroller.
Subhani PSubhani P

Hi,

 

I hope that the below link will help for solving your issue.

 

http://boards.developerforce.com/t5/Apex-Code-Development/constructor-not-defined-in-test-method/td-p/164908

 

 

If this post is helpful please throw Kudos.If this post solves your  problem kindly mark it as solution.

 

Thanks,
Subhani,
Salesforce Certified Developer,
www.mydbsync.com