+ Start a Discussion
gbu.varungbu.varun 

Get records of a particular list view

Hi All,

 

 

I want to get records of a particular list view in controller like I can get records of a particular view on visualforce force page as:

 

<apex:page standardController="Account" >
    <apex:enhancedList height="300" rowsPerPage="10" Listid="00B90000003eOf9">       
</apex:page>

 

 

00B90000003eOf9  is the id of list view.  I want to get record these records into a list in Controller. How can I do it?

Best Answer chosen by Admin (Salesforce Developers) 
gbu.varungbu.varun

I have resolved it using ApexPages.StandardSetController and I filter result by putting setCon.setFilterId('00B90000003eOef');  into my code.