function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AsshAssh 

standard controller action edit and delete not working

Hi All,

 

I am using the following code in Visualforce page to implete edit and delete actions.In this case, I am not able to see "delete" and "edit" buttons when I execute the page. It is not a complete code, I have pasted some portion of thecode. Could anyone please tell me what is wrong with delete and edit actions? Your help is greatly appreciated.

 

<apex:page standardController="Customer_Details__c" extensions="ExtOne">

 <apex:form >

<apex:commandButton action="{!delete}" value="delete"/>
  <apex:commandButton action="{!edit}" value="edit"/>

</apex:form>
</apex:page>

Best Answer chosen by Admin (Salesforce Developers) 
AsshAssh

Hi,

 

Thank you for the valuable suggestion. I did give proper permissions, and it is working now.

All Answers

aballardaballard

Does the user have the necessary access to the object?  The buttons will not display if the user doesn't have edit/delete permissions. 

AsshAssh

Hi,

 

Thank you for the valuable suggestion. I did give proper permissions, and it is working now.

This was selected as the best answer