You need to sign in to do that
Don't have an account?

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}" />
Don't use listId, use type="My_Custom_Object__c"
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...
Hi,,
can we show diiferent views of enhancedlist to different users
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.