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
nagalakshminagalakshmi 

How to use the listview id in to apex class

Hi,

 

How to use the list view id in to apex class. If i know the list view id how can we get the records from object through query or standard controller method... etc. I need to get the values from listview using apex class. Please any one help me... I have tried a lot but i am unable to find the solution for this.

 

Thanks,

Lakshmi.

MoUsmanMoUsman

Hi nagalakshmi,

 

Please refer this simple Example here it will show listview of "Case" object and "myCustomeObject_c" object you can put your own custome object as well.

 

<apex:page showHeader="true" tabstyle="Case">
    <apex:ListViews type="Case" />
    <apex:ListViews type="MyCustomObject__c" />
</apex:page>  

 --

Thanks 

Usman

nagalakshminagalakshmi

Hi,

 

Thanks for your reply... I have used this one, and i have used with enhance lists and with standard controller also. When i used standard controller it works fine for single object. And i need to display more than one object list views in to visualforce singel picklist, when i select the pick list it will displays the corresponding object records.... Is there any possibility.....

 

Thanks,

Lakshmi.