I have a List Button on a custom object. I need to use that button in that object as detail page button. Please find the VF page that List button calls here.
Page:
<apex:page standardController="Compliance_Incident_abv__c" recordSetVar="Incidents" extensions="CompIncidentListActionController" tabStyle="Compliance_Incident_abv__c">
<apex:form >
<apex:pageBlock title="Selected Incidents to Publish" id="Pb1">
<apex:pageMessages />
<apex:pageBlockTable value="{!selected}" var="inc" rendered="{!SelectedSize > 0}">
<apex:column value="{!inc.name}"/>
<apex:column value="{!inc.Rep_abv__c}"/>
<apex:column value="{!inc.OwnerId}"/>
<apex:column value="{!inc.CreatedDate}"/>
<apex:column value="{!inc.Publish_Date_abv__c}"/>
<apex:column value="{!inc.No_Of_Transactions_abv__c}"/>
<apex:column value="{!inc.Status_abv__c}"/>
</apex:pageBlockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Confirm" action="{!Publish}" rendered="{!SelectedSize > 0}"/>
<apex:commandButton value="Back" action="{!cancel}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>