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
JNicJNic 

enhancedlist listId attribute

Hey all,

Does anyone know how to dynamically get listIds from Enhanced Lists?

 

ie: Bad practice:

 

 

<apex:enhancedList height="300" listId="00BM0000000LbS1" />

 

 

Good practice:

<apex:enhancedList height="300" listId="{!myListId}" />
Jeremy-KraybillJeremy-Kraybill

Don't use listId, use type="My_Custom_Object__c"

JNicJNic

Thanks Jeremy,

 

That only takes me to the users last selected list. (or the default "All")

 

If there are three lists:

All

My Records

New Records in 7 days

 

Then I need a way to get the list Id of one of those specific lists. When you select one, you see the id in the URL param as "&fcf=000000000000000"

 

I need a query or something...

Arun KArun K

Hi,,

can we show diiferent views of enhancedlist to different users

Benjamin.PalaciosBenjamin.Palacios

JNic,

 

Go to the enhaced list and select the list you want from the dropdown. Click edit, in the URL the id parameter has the List Id:

 

.../list/FilterEditPage?id=00BC0000008raWh&retURL...

 

You have to go into each list and edit it to get the id.

 

What we did to get the list dynamically is create a custom object, put the Ids in there and query the custom object. You have to manually maintain it so it will create some maintenance overhead, but it worked for our purposes.