Create a Visualforce page in the production
standardController = the object that you want to mass delete to be added.
extensions = ”GFCON.MassDeleteController”
Copy and paste the code below. Simply replace the GFERP__Sales_Price2__c with your object name.
<apex:page recordSetVar="" standardController="GFERP__Sales_Price2__c" extensions="GFCON.MassDeleteController" lightningStylesheets="true">
<GFERP:LoadingStatus />
<apex:sectionHeader title="Mass Delete Sales Price"/>
<apex:form id="theForm">
<apex:pageBlock id="thePageBlock">
<apex:outputPanel >
<apex:pageMessages id="theMessage"></apex:pageMessages>
</apex:outputPanel>
<apex:pageBlockButtons location="bottom">
<apex:commandButton status="loadingstatus" action="{!massDelete}" rerender="thePageBlock" value="Mass Delete"/>
<apex:commandButton value="Return" action="{!cancel}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Then add a list button. Add the button to the list view.
Comments
0 comments
Please sign in to leave a comment.