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

How to designate default/initial list view for enhancedlist component
I want to include the apex:enhancedList component on a VF page. I want this page to display a particular view when the page first loads. How can I do this? I won't know the specific IDs of any records because this code will be installed in other orgs.
Can I query for a particular view and designate that the enhancedList should show that view?
Can I specify that a particular view should be displayed by name?
All Answers
I need the same the same thing. Is there a solution for that? I can not see.
Anna
I have found a way which will work.
A) Find out the listview ID
1. Go to the object's tab and load the listview which you want to use as default.
2. In the header of the standard listview (not in an enhancedList on a visoualforce page!) there is a print preview icon. Get its print preview call into the clipbboard (right mouse button click on the icon; Copy Shortcut)
3. Paste it in an editor. It looks like this:
javascript:printWin('/a0e/x?fcf=00B20000004D5qt&rolodexIndex=-1&page=1')
4. You have the ID you need as an fcf parameter.
B) Build the listview call
1. Sometimes you can see a link on standard detail salesforce pages like
Back to List: Solutions
You can get such a link-example with Copy Shortcut, like this:
https://emea.salesforce.com/501?fcf=00B20000003cXMp&rolodexIndex=-1&page=1
2. Build a similar https-string together using the proper object characteristics (3 characters) and using the listview ID you need.
3. Use this https-string in your code.
Anna
Awesome, thank you.
Anyone have any idea how to specify this in a VF page? I've looked through the tags for ListView as well, and it doesn't like me trying to specify.
You can do this by overriding the tab with a VF page that then redirects you to a certain list view.
Hope that helps!
Niki
www.vankerksolutions.com