You need to sign in to do that
Don't have an account?
Object-agnostic Visualforce page?
Is this possible? I want to add a Custom Button to the List View for Accounts, Opportunities, Leads, etc. When the button is clicked a VF page is navigated to, and some processing occurs, and this processing doesn't care what object is being listed--it just saves a list of the object Ids that the user has selected (checked) from the list.
As it is, I have to create a separate VF page for each Object and put
<apex:page standardController="Account" extensions="MyListController" action="{!init}" recordSetVar="items"
Then I have to do another page for Opportunites where the only difference is standardController='Opportunities'
Also, this makes it impossible to use the Custom Button on List View's of Custom Objects since a new VF page would have to be created for each Custom Object that supports the Button on their lists.