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
manjirimanjiri 

How to get List view Id dynamically

I want to create different views of custom objects and in different criterias I want to show specific views.

I have tried following line. but if I put any string in id, it is showing same result

<apex:enhancedList type="Test__c" height="300" rowsPerPage="10" id="ABC" /> 

The discription for this attribute is

 

The database ID of the desired list view. When editing a list view definition, this ID is the 15-character string after 'fcf=' in the browser's address bar. This value is required if type is not specified.

 

How can I get this id.

 

Navatar_DbSupNavatar_DbSup

Hi,

     I do not think we can generate tthe list view id as a dynamic.when getting the id after editing the list view defination, and check it gives me insufficent privelege error.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.