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
Muzammil BajariaMuzammil Bajaria 

standard list controller for custom object

Hi,

I want to use standard list controller for my custom object. I saw various example but they all are for stardard object  i.e accounts. i did the same for custom object but that wa not working. Can you please help how can we implement standard list controller for custom object with a short example.

ThankYou in advance
Best Answer chosen by Muzammil Bajaria
Muzammil BajariaMuzammil Bajaria
Hi Piyush,
sorry for late reply but i have found my mistake. I was using StandardController instead of StartdardSetController in constructor i.e. 
public ApexPages.StandardSetController setCon{}

ThankYou for prompt reply.

 

All Answers

sfdcMonkey.comsfdcMonkey.com
hi Muzannll
can you Please share your code onces:)
Muzammil BajariaMuzammil Bajaria
Hi Piyush,
sorry for late reply but i have found my mistake. I was using StandardController instead of StartdardSetController in constructor i.e. 
public ApexPages.StandardSetController setCon{}

ThankYou for prompt reply.

 
This was selected as the best answer